Re: parisc: move CPU field back into thread_info

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Thu, Nov 04, 2021 at 09:26:28AM +0100, Ard Biesheuvel wrote:
> In commit 2214c0e77259 ("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: Guenter Roeck <linux@xxxxxxxxxxxx>
> Fixes: bcf9033e5449 ("sched: move CPU field back into thread_info if THREAD_INFO_IN_TASK=y")
> Signed-off-by: Ard Biesheuvel <ardb@xxxxxxxxxx>
> Signed-off-by: Helge Deller <deller@xxxxxx>

FWIW:

Tested-by: Guenter Roeck <linux@xxxxxxxxxxxx>

Guenter



[Index of Archives]     [Linux SoC]     [Linux USB Devel]     [Video for Linux]     [Linux Audio Users]     [Yosemite News]     [Linux Kernel]     [Linux SCSI]

  Powered by Linux