Re: [PATCH] PPC: use CURRENT_THREAD_INFO instead of open coded assembly

2012-07-02 Thread Alexander Graf
On 02.07.2012, at 23:31, Scott Wood wrote: > On 07/02/2012 04:27 PM, Alexander Graf wrote: >> >> On 02.07.2012, at 23:26, Benjamin Herrenschmidt wrote: >> >>> On Mon, 2012-07-02 at 22:59 +0200, Alexander Graf wrote: This should go into an #ifdef __ASSEMBLY__ block, right? :) >>> >>> We al

Re: [PATCH] PPC: use CURRENT_THREAD_INFO instead of open coded assembly

2012-07-02 Thread Scott Wood
On 07/02/2012 04:27 PM, Alexander Graf wrote: > > On 02.07.2012, at 23:26, Benjamin Herrenschmidt wrote: > >> On Mon, 2012-07-02 at 22:59 +0200, Alexander Graf wrote: >>> This should go into an #ifdef __ASSEMBLY__ block, right? :) >> >> We almost never use #ifdef __ASSEMBLY__, we use it the othe

Re: [PATCH] PPC: use CURRENT_THREAD_INFO instead of open coded assembly

2012-07-02 Thread Alexander Graf
On 02.07.2012, at 23:26, Benjamin Herrenschmidt wrote: > On Mon, 2012-07-02 at 22:59 +0200, Alexander Graf wrote: >> This should go into an #ifdef __ASSEMBLY__ block, right? :) > > We almost never use #ifdef __ASSEMBLY__, we use it the other way around, > to prevent C stuff from being included i

Re: [PATCH] PPC: use CURRENT_THREAD_INFO instead of open coded assembly

2012-07-02 Thread Benjamin Herrenschmidt
On Mon, 2012-07-02 at 22:59 +0200, Alexander Graf wrote: > This should go into an #ifdef __ASSEMBLY__ block, right? :) We almost never use #ifdef __ASSEMBLY__, we use it the other way around, to prevent C stuff from being included in assembly. The other way around is legit since things might be us

Re: [PATCH] PPC: use CURRENT_THREAD_INFO instead of open coded assembly

2012-07-02 Thread Alexander Graf
On 02.07.2012, at 22:56, Stuart Yoder wrote: > From: Stuart Yoder > > Signed-off-by: Stuart Yoder > --- > > -this patch is a pre-requisite for the idle hcall which I > am trying to get into Alex's KVM tree, so ideally would like > Ben's ack and get this applied to Alex's tree > > -built/test

[PATCH] PPC: use CURRENT_THREAD_INFO instead of open coded assembly

2012-07-02 Thread Stuart Yoder
From: Stuart Yoder Signed-off-by: Stuart Yoder --- -this patch is a pre-requisite for the idle hcall which I am trying to get into Alex's KVM tree, so ideally would like Ben's ack and get this applied to Alex's tree -built/tested with a 32-bit booke kernel, built a 64-bit booke kernel arch/