diff for duplicates of <20070310082646.GC2994@holomorphy.com> diff --git a/a/1.txt b/N1/1.txt index 16bcff7..0798fcf 100644 --- a/a/1.txt +++ b/N1/1.txt @@ -1,7 +1,7 @@ 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) { +> if(last_task_used_math == current) { > #else > - if(current_thread_info()->flags & _TIF_USEDFPU) { > + if(test_ti_thread_flag(current_thread_info(), TIF_USEDFPU)) { @@ -13,11 +13,12 @@ Oh dear. Could we bit a bit more idiomatic here? For instance, something like: Index: linux-2.6/arch/sparc/kernel/process.c -=================================--- linux-2.6.orig/arch/sparc/kernel/process.c 2007-03-09 23:24:12.934472032 -0800 +=================================================================== +--- linux-2.6.orig/arch/sparc/kernel/process.c 2007-03-09 23:24:12.934472032 -0800 +++ linux-2.6/arch/sparc/kernel/process.c 2007-03-09 23:29:26.592346376 -0800 @@ -348,7 +348,7 @@ #ifndef CONFIG_SMP - if(last_task_used_math = current) { + if(last_task_used_math == current) { #else - if(current_thread_info()->flags & _TIF_USEDFPU) { + if (test_thread_flag(TIF_USEDFPU)) { @@ -35,7 +36,7 @@ Index: linux-2.6/arch/sparc/kernel/process.c } @@ -371,7 +371,7 @@ #ifndef CONFIG_SMP - if(last_task_used_math = current) { + if(last_task_used_math == current) { #else - if(current_thread_info()->flags & _TIF_USEDFPU) { + if (test_thread_flag(TIF_USEDFPU)) { @@ -53,7 +54,7 @@ Index: linux-2.6/arch/sparc/kernel/process.c @@ -466,13 +466,13 @@ #ifndef CONFIG_SMP - if(last_task_used_math = current) { + if(last_task_used_math == current) { #else - if(current_thread_info()->flags & _TIF_USEDFPU) { + if (test_thread_flag(TIF_USEDFPU)) { @@ -84,7 +85,8 @@ Index: linux-2.6/arch/sparc/kernel/process.c } #else Index: linux-2.6/arch/sparc/kernel/traps.c -=================================--- linux-2.6.orig/arch/sparc/kernel/traps.c 2007-03-09 23:40:33.994379450 -0800 +=================================================================== +--- linux-2.6.orig/arch/sparc/kernel/traps.c 2007-03-09 23:40:33.994379450 -0800 +++ linux-2.6/arch/sparc/kernel/traps.c 2007-03-09 23:44:07.910569839 -0800 @@ -259,7 +259,7 @@ } else { diff --git a/a/content_digest b/N1/content_digest index 6d2e18e..d725fc9 100644 --- a/a/content_digest +++ b/N1/content_digest @@ -1,7 +1,7 @@ "ref\020070310081743.GC23144@Krystal\0" "From\0William Lee Irwin III <wli@holomorphy.com>\0" "Subject\0Re: [PATCH] Fix sparc TIF_USEDFPU flag atomicity\0" - "Date\0Sat, 10 Mar 2007 08:26:46 +0000\0" + "Date\0Sat, 10 Mar 2007 00:26:46 -0800\0" "To\0Mathieu Desnoyers <mathieu.desnoyers@polymtl.ca>\0" "Cc\0akpm@linux-foundation.org" mbligh@google.com @@ -12,7 +12,7 @@ "On Sat, Mar 10, 2007 at 03:17:43AM -0500, Mathieu Desnoyers wrote:\n" "> @@ -348,7 +348,7 @@ void exit_thread(void)\n" "> #ifndef CONFIG_SMP\n" - "> \tif(last_task_used_math = current) {\n" + "> \tif(last_task_used_math == current) {\n" "> #else\n" "> -\tif(current_thread_info()->flags & _TIF_USEDFPU) {\n" "> +\tif(test_ti_thread_flag(current_thread_info(), TIF_USEDFPU)) {\n" @@ -24,11 +24,12 @@ "something like:\n" "\n" "Index: linux-2.6/arch/sparc/kernel/process.c\n" - "=================================--- linux-2.6.orig/arch/sparc/kernel/process.c\t2007-03-09 23:24:12.934472032 -0800\n" + "===================================================================\n" + "--- linux-2.6.orig/arch/sparc/kernel/process.c\t2007-03-09 23:24:12.934472032 -0800\n" "+++ linux-2.6/arch/sparc/kernel/process.c\t2007-03-09 23:29:26.592346376 -0800\n" "@@ -348,7 +348,7 @@\n" " #ifndef CONFIG_SMP\n" - " \tif(last_task_used_math = current) {\n" + " \tif(last_task_used_math == current) {\n" " #else\n" "-\tif(current_thread_info()->flags & _TIF_USEDFPU) {\n" "+\tif (test_thread_flag(TIF_USEDFPU)) {\n" @@ -46,7 +47,7 @@ " }\n" "@@ -371,7 +371,7 @@\n" " #ifndef CONFIG_SMP\n" - " \tif(last_task_used_math = current) {\n" + " \tif(last_task_used_math == current) {\n" " #else\n" "-\tif(current_thread_info()->flags & _TIF_USEDFPU) {\n" "+\tif (test_thread_flag(TIF_USEDFPU)) {\n" @@ -64,7 +65,7 @@ " \n" "@@ -466,13 +466,13 @@\n" " #ifndef CONFIG_SMP\n" - " \tif(last_task_used_math = current) {\n" + " \tif(last_task_used_math == current) {\n" " #else\n" "-\tif(current_thread_info()->flags & _TIF_USEDFPU) {\n" "+\tif (test_thread_flag(TIF_USEDFPU)) {\n" @@ -95,7 +96,8 @@ " \t}\n" " #else\n" "Index: linux-2.6/arch/sparc/kernel/traps.c\n" - "=================================--- linux-2.6.orig/arch/sparc/kernel/traps.c\t2007-03-09 23:40:33.994379450 -0800\n" + "===================================================================\n" + "--- linux-2.6.orig/arch/sparc/kernel/traps.c\t2007-03-09 23:40:33.994379450 -0800\n" "+++ linux-2.6/arch/sparc/kernel/traps.c\t2007-03-09 23:44:07.910569839 -0800\n" "@@ -259,7 +259,7 @@\n" " \t} else {\n" @@ -125,4 +127,4 @@ " \tif(psr & PSR_PS) {\n" " \t\t/* The first fsr store/load we tried trapped," -1e31f667750ce906a7acfaa76447f2b07183ad30b030ed8abc1591a671a00a91 +1292e0cace43fc36243b297c38863fa833324aa66a3d5b71d99a4fecfe7f59d1
This is an external index of several public inboxes, see mirroring instructions on how to clone and mirror all data and code used by this external index.