Re: [PATCH] Fix sparc TIF_USEDFPU flag atomicity

2007-03-10 Thread Mathieu Desnoyers
* William Lee Irwin III ([EMAIL PROTECTED]) wrote: > On Sat, 10 Mar 2007 00:26:46 -0800, William Lee Irwin III <[EMAIL PROTECTED]> > wrote: > >> Oh dear. Could we bit a bit more idiomatic here? For instance, > >> something like: > > On Sat, Mar 10, 2007 at 12:29:44AM -0800, David Miller wrote: >

Re: [PATCH] Fix sparc TIF_USEDFPU flag atomicity

2007-03-10 Thread William Lee Irwin III
On Sat, 10 Mar 2007 00:26:46 -0800, William Lee Irwin III <[EMAIL PROTECTED]> wrote: >> Oh dear. Could we bit a bit more idiomatic here? For instance, >> something like: On Sat, Mar 10, 2007 at 12:29:44AM -0800, David Miller wrote: > Ok I pulled the sparc32 patch back out until there is some >

Re: [PATCH] Fix sparc TIF_USEDFPU flag atomicity

2007-03-10 Thread David Miller
From: William Lee Irwin III <[EMAIL PROTECTED]> Date: Sat, 10 Mar 2007 00:26:46 -0800 > On Sat, Mar 10, 2007 at 03:17:43AM -0500, Mathieu Desnoyers wrote: > > @@ -348,7 +348,7 @@ void exit_thread(void) > > #ifndef CONFIG_SMP > > if(last_task_used_math == current) { > > #else > > -

Re: [PATCH] Fix sparc TIF_USEDFPU flag atomicity

2007-03-10 Thread William Lee Irwin III
On Sat, Mar 10, 2007 at 03:17:43AM -0500, Mathieu Desnoyers wrote: > @@ -348,7 +348,7 @@ void exit_thread(void) > #ifndef CONFIG_SMP > if(last_task_used_math == current) { > #else > - if(current_thread_info()->flags & _TIF_USEDFPU) { > +

Re: [PATCH] Fix sparc TIF_USEDFPU flag atomicity

2007-03-10 Thread David Miller
From: Mathieu Desnoyers <[EMAIL PROTECTED]> Date: Sat, 10 Mar 2007 03:17:43 -0500 > Fix sparc TIF_USEDFPU flag atomicity Also applied, thanks again. - To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to [EMAIL PROTECTED] More majordomo info at

[PATCH] Fix sparc TIF_USEDFPU flag atomicity

2007-03-10 Thread Mathieu Desnoyers
Fix sparc TIF_USEDFPU flag atomicity Non atomic update of TIF can be very dangerous, except at thread structure creation time. Here I standardize the TIF_USEDFPU usage of the sparc arch. This fix addresses the issue with *_ti_thread_flag(). Applies on 2.6.20. Signed-off-by: Mathieu Desnoyers

[PATCH] Fix sparc TIF_USEDFPU flag atomicity

2007-03-10 Thread Mathieu Desnoyers
Fix sparc TIF_USEDFPU flag atomicity Non atomic update of TIF can be very dangerous, except at thread structure creation time. Here I standardize the TIF_USEDFPU usage of the sparc arch. This fix addresses the issue with *_ti_thread_flag(). Applies on 2.6.20. Signed-off-by: Mathieu Desnoyers

Re: [PATCH] Fix sparc TIF_USEDFPU flag atomicity

2007-03-10 Thread William Lee Irwin III
On Sat, Mar 10, 2007 at 03:17:43AM -0500, Mathieu Desnoyers wrote: @@ -348,7 +348,7 @@ void exit_thread(void) #ifndef CONFIG_SMP if(last_task_used_math == current) { #else - if(current_thread_info()-flags _TIF_USEDFPU) { + if(test_ti_thread_flag(current_thread_info(),

Re: [PATCH] Fix sparc TIF_USEDFPU flag atomicity

2007-03-10 Thread David Miller
From: Mathieu Desnoyers [EMAIL PROTECTED] Date: Sat, 10 Mar 2007 03:17:43 -0500 Fix sparc TIF_USEDFPU flag atomicity Also applied, thanks again. - To unsubscribe from this list: send the line unsubscribe linux-kernel in the body of a message to [EMAIL PROTECTED] More majordomo info at

Re: [PATCH] Fix sparc TIF_USEDFPU flag atomicity

2007-03-10 Thread David Miller
From: William Lee Irwin III [EMAIL PROTECTED] Date: Sat, 10 Mar 2007 00:26:46 -0800 On Sat, Mar 10, 2007 at 03:17:43AM -0500, Mathieu Desnoyers wrote: @@ -348,7 +348,7 @@ void exit_thread(void) #ifndef CONFIG_SMP if(last_task_used_math == current) { #else -

Re: [PATCH] Fix sparc TIF_USEDFPU flag atomicity

2007-03-10 Thread William Lee Irwin III
On Sat, 10 Mar 2007 00:26:46 -0800, William Lee Irwin III [EMAIL PROTECTED] wrote: Oh dear. Could we bit a bit more idiomatic here? For instance, something like: On Sat, Mar 10, 2007 at 12:29:44AM -0800, David Miller wrote: Ok I pulled the sparc32 patch back out until there is some consensus

Re: [PATCH] Fix sparc TIF_USEDFPU flag atomicity

2007-03-10 Thread Mathieu Desnoyers
* William Lee Irwin III ([EMAIL PROTECTED]) wrote: On Sat, 10 Mar 2007 00:26:46 -0800, William Lee Irwin III [EMAIL PROTECTED] wrote: Oh dear. Could we bit a bit more idiomatic here? For instance, something like: On Sat, Mar 10, 2007 at 12:29:44AM -0800, David Miller wrote: Ok I pulled

Re: [PATCH] Fix sparc TIF_USEDFPU flag atomicity

2007-03-09 Thread William Lee Irwin III
On Thu, 8 Mar 2007 22:12:27 -0500 Mathieu Desnoyers <[EMAIL PROTECTED]> wrote: >> Fix sparc TIF_USEDFPU flag atomicity >> Non atomic update of TIF can be very dangerous, except at thread structure >> creation time. Here I standardize the TIF_USEDFPU usage of the sparc arch. >> Applies on 2.6.20.

Re: [PATCH] Fix sparc TIF_USEDFPU flag atomicity

2007-03-09 Thread William Lee Irwin III
On Thu, 8 Mar 2007 22:12:27 -0500 Mathieu Desnoyers [EMAIL PROTECTED] wrote: Fix sparc TIF_USEDFPU flag atomicity Non atomic update of TIF can be very dangerous, except at thread structure creation time. Here I standardize the TIF_USEDFPU usage of the sparc arch. Applies on 2.6.20.

Re: [PATCH] Fix sparc TIF_USEDFPU flag atomicity

2007-03-08 Thread David Miller
From: Mathieu Desnoyers <[EMAIL PROTECTED]> Date: Thu, 8 Mar 2007 22:12:27 -0500 > Fix sparc TIF_USEDFPU flag atomicity > > Non atomic update of TIF can be very dangerous, except at thread structure > creation time. Here I standardize the TIF_USEDFPU usage of the sparc arch. > > Applies on

[PATCH] Fix sparc TIF_USEDFPU flag atomicity

2007-03-08 Thread Mathieu Desnoyers
Fix sparc TIF_USEDFPU flag atomicity Non atomic update of TIF can be very dangerous, except at thread structure creation time. Here I standardize the TIF_USEDFPU usage of the sparc arch. Applies on 2.6.20. Signed-off-by: Mathieu Desnoyers <[EMAIL PROTECTED]> --- a/arch/sparc/kernel/process.c

[PATCH] Fix sparc TIF_USEDFPU flag atomicity

2007-03-08 Thread Mathieu Desnoyers
Fix sparc TIF_USEDFPU flag atomicity Non atomic update of TIF can be very dangerous, except at thread structure creation time. Here I standardize the TIF_USEDFPU usage of the sparc arch. Applies on 2.6.20. Signed-off-by: Mathieu Desnoyers [EMAIL PROTECTED] --- a/arch/sparc/kernel/process.c +++

Re: [PATCH] Fix sparc TIF_USEDFPU flag atomicity

2007-03-08 Thread David Miller
From: Mathieu Desnoyers [EMAIL PROTECTED] Date: Thu, 8 Mar 2007 22:12:27 -0500 Fix sparc TIF_USEDFPU flag atomicity Non atomic update of TIF can be very dangerous, except at thread structure creation time. Here I standardize the TIF_USEDFPU usage of the sparc arch. Applies on 2.6.20.