[<prev] [next>] [day] [month] [year] [list]
Message-Id: <200811212111.43149.rusty@rustcorp.com.au>
Date: Fri, 21 Nov 2008 21:11:42 +1030
From: Rusty Russell <rusty@...tcorp.com.au>
To: James Bottomley <James.Bottomley@...senpartnership.com>
Cc: James Bottomley <James.Bottomley@...senPartnership.com>
Subject: [PATCH 3/3] percpu: fix percpu accessors to potentially !cpu_possible() cpus: x86 voyager
Impact: CPU iterator bugfixes
Percpu areas are only allocated for possible cpus. In general, you
shouldn't access random cpu's percpu areas.
Signed-off-by: Rusty Russell <rusty@...tcorp.com.au>
Signed-off-by: Mike Travis <travis@....com>
Acked-by: Ingo Molnar <mingo@...e.hu>
Cc: James Bottomley <James.Bottomley@...senPartnership.com>
---
arch/x86/mach-voyager/voyager_smp.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
--- test-compile.orig/arch/x86/mach-voyager/voyager_smp.c
+++ test-compile/arch/x86/mach-voyager/voyager_smp.c
@@ -1223,7 +1223,7 @@ int setup_profiling_timer(unsigned int m
* new values until the next timer interrupt in which they do process
* accounting.
*/
- for (i = 0; i < NR_CPUS; ++i)
+ for_each_possible_cpu(i)
per_cpu(prof_multiplier, i) = multiplier;
return 0;
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@...r.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/
Powered by blists - more mailing lists