Skip to content
Commit 2a2e8202 authored by Ard Biesheuvel's avatar Ard Biesheuvel Committed by Helge Deller
Browse files

parisc: move CPU field back into thread_info

In commit 2214c0e7

 ("parisc: Move thread_info into task struct")
PA-RISC gained support for THREAD_INFO_IN_TASK while changes were
already underway to keep the CPU field in thread_info rather than move
it into task_struct when THREAD_INFO_IN_TASK is enabled. The result is a
broken build for all PA-RISC configs that enable SMP.

So let's partially revert that commit, and get rid of the ugly hack to
get at the offset of task_struct::cpu without having to include
linux/sched.h, and put the CPU field back where it was before.

Reported-by: default avatarGuenter Roeck <linux@roeck-us.net>
Fixes: bcf9033e

 ("sched: move CPU field back into thread_info if THREAD_INFO_IN_TASK=y")
Signed-off-by: default avatarArd Biesheuvel <ardb@kernel.org>
Signed-off-by: default avatarHelge Deller <deller@gmx.de>
parent 7e992711
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment