Re: [PATCH] arm64: Minor refactoring of cpu_switch_to() to fix build breakage

2015-07-20 Thread Olof Johansson
On Mon, Jul 20, 2015 at 7:20 AM, Guenter Roeck wrote: > On Mon, Jul 20, 2015 at 11:53:45AM +0100, Will Deacon wrote: >> On Mon, Jul 20, 2015 at 08:36:47AM +0100, Ingo Molnar wrote: >> > * Olof Johansson wrote: >> > >> > > Commit 0c8c0f03e3a2 ("x86/fpu, sched: Dynamically allocate 'struct fpu'") >

Re: [PATCH] arm64: Minor refactoring of cpu_switch_to() to fix build breakage

2015-07-20 Thread Guenter Roeck
On Mon, Jul 20, 2015 at 11:53:45AM +0100, Will Deacon wrote: > On Mon, Jul 20, 2015 at 08:36:47AM +0100, Ingo Molnar wrote: > > * Olof Johansson wrote: > > > > > Commit 0c8c0f03e3a2 ("x86/fpu, sched: Dynamically allocate 'struct fpu'") > > > moved the thread_struct to the bottom of task_struct. A

Re: [PATCH] arm64: Minor refactoring of cpu_switch_to() to fix build breakage

2015-07-20 Thread Will Deacon
On Mon, Jul 20, 2015 at 08:36:47AM +0100, Ingo Molnar wrote: > * Olof Johansson wrote: > > > Commit 0c8c0f03e3a2 ("x86/fpu, sched: Dynamically allocate 'struct fpu'") > > moved the thread_struct to the bottom of task_struct. As a result, the > > offset is now too large to be used in an immediate

Re: [PATCH] arm64: Minor refactoring of cpu_switch_to() to fix build breakage

2015-07-20 Thread Ingo Molnar
* Olof Johansson wrote: > Commit 0c8c0f03e3a2 ("x86/fpu, sched: Dynamically allocate 'struct fpu'") > moved the thread_struct to the bottom of task_struct. As a result, the > offset is now too large to be used in an immediate add on arm64 with > some kernel configs: > > arch/arm64/kernel/entry.

[PATCH] arm64: Minor refactoring of cpu_switch_to() to fix build breakage

2015-07-19 Thread Olof Johansson
Commit 0c8c0f03e3a2 ("x86/fpu, sched: Dynamically allocate 'struct fpu'") moved the thread_struct to the bottom of task_struct. As a result, the offset is now too large to be used in an immediate add on arm64 with some kernel configs: arch/arm64/kernel/entry.S: Assembler messages: arch/arm64/kerne