RE: [PATCH] powerpc/32bit,PREEMPT:Load TI_FLAGS to check NEED_RESCHED

2013-05-27 Thread Jain Priyanka-B32167
y, May 27, 2013 12:49 PM > To: Jain Priyanka-B32167 > Cc: linuxppc-dev@lists.ozlabs.org; Wood Scott-B07421 > Subject: Re: [PATCH] powerpc/32bit,PREEMPT:Load TI_FLAGS to check > NEED_RESCHED > > On 05/27/2013 02:55 PM, Jain Priyanka-B32167 wrote: > > > > If we go some more

Re: [PATCH] powerpc/32bit, PREEMPT:Load TI_FLAGS to check NEED_RESCHED

2013-05-27 Thread tiejun.chen
On 05/27/2013 02:55 PM, Jain Priyanka-B32167 wrote: If we go some more lines up in the same file, the code is resume_kernel: /* check current_thread_info, _TIF_EMULATE_STACK_STORE */ CURRENT_THREAD_INFO(r9, r1) lwz r8,TI_FLAGS(r9) andis. r8,r8,_TIF_EMULA

Re: [PATCH] powerpc/32bit,PREEMPT:Load TI_FLAGS to check NEED_RESCHED

2013-05-27 Thread Benjamin Herrenschmidt
On Mon, 2013-05-27 at 11:57 +0530, Priyanka Jain wrote: > Add instruction to load TI_FLAGS in r8 > > While returning from exception handling in case of PREEMPT enabled, > _TIF_NEED_RESCHED bit is checked in TI_FLAGS (thread_info flag) of > current > task. Only if this bit is set, it should con

RE: [PATCH] powerpc/32bit,PREEMPT:Load TI_FLAGS to check NEED_RESCHED

2013-05-26 Thread Jain Priyanka-B32167
ppropriate value. Regards Priyanka > -Original Message- > From: tiejun.chen [mailto:tiejun.c...@windriver.com] > Sent: Monday, May 27, 2013 12:15 PM > To: Jain Priyanka-B32167 > Cc: linuxppc-dev@lists.ozlabs.org; Wood Scott-B07421 > Subject: Re: [PATCH] powerpc/32bit,PR

Re: [PATCH] powerpc/32bit, PREEMPT:Load TI_FLAGS to check NEED_RESCHED

2013-05-26 Thread tiejun.chen
On 05/27/2013 02:27 PM, Priyanka Jain wrote: Add instruction to load TI_FLAGS in r8 While returning from exception handling in case of PREEMPT enabled, _TIF_NEED_RESCHED bit is checked in TI_FLAGS (thread_info flag) of current task. Only if this bit is set, it should continue with the process of

[PATCH] powerpc/32bit,PREEMPT:Load TI_FLAGS to check NEED_RESCHED

2013-05-26 Thread Priyanka Jain
Add instruction to load TI_FLAGS in r8 While returning from exception handling in case of PREEMPT enabled, _TIF_NEED_RESCHED bit is checked in TI_FLAGS (thread_info flag) of current task. Only if this bit is set, it should continue with the process of calling preempt_schedule_irq() to schedule