parisc: move CPU field back into thread_info
Guenter Roeck
Tested-byQuoted 6 lines · Ard Biesheuvel
In commit
2214c0e77259("parisc: Movethread_infointo task struct") PA-RISC gained support forTHREAD_INFO_IN_TASKwhile changes were already underway to keep the CPU field inthread_inforather than move it intotask_structwhenTHREAD_INFO_IN_TASKis enabled. The result is a broken build for all PA-RISC configs that enable SMP.
Quoted 8 lines
So let's partially revert that commit, and get rid of the ugly hack to get at the offset of
task_struct::cpuwithout having to includelinux/sched.h, and put the CPU field back where it was before.Reported-by Guenter Roeck <[email protected]>Fixes bcf9033e5449 ("sched: move CPU field back into thread_info if THREAD_INFO_IN_TASK=y")Signed-off-by Ard Biesheuvel <[email protected]>Signed-off-by Helge Deller <[email protected]>
FWIW:
Tested-by Guenter Roeck <[email protected]>
Guenter