public inbox for linux-kernel@vger.kernel.org
 help / color / mirror / Atom feed
* PPC64 doesn't compile with CONFIG_SMP=n
@ 2007-12-20 14:15 Egor Starkov
  0 siblings, 0 replies; only message in thread
From: Egor Starkov @ 2007-12-20 14:15 UTC (permalink / raw)
  To: mingo; +Cc: rostedt, linux-rt-users, linux-kernel, linuxppc-dev

[-- Attachment #1: Type: text/plain, Size: 288 bytes --]

Hello Ingo

I've found out that real-time tree doesn't compile for PPC64 with 
CONFIG_SMP=n.

Think this is due to patch-2.6.21.4-rt10 patch. It has
definitions of following symbols missing: __get_cpu_lock,
__get_cpu_var_locked.

I've attached the patch to fix the problem.

Egor Starkov

[-- Attachment #2: powerpc_smp_bugfix --]
[-- Type: text/plain, Size: 572 bytes --]

Signed-off-by: Egor Starkov <estarkov@ru.mvista.com>

Index: linux-2.6.21/include/asm-powerpc/percpu.h
===================================================================
--- linux-2.6.21.orig/include/asm-powerpc/percpu.h
+++ linux-2.6.21/include/asm-powerpc/percpu.h
@@ -61,6 +61,8 @@ extern void setup_per_cpu_areas(void);
 
 #define __get_cpu_var(var)			per_cpu__##var
 #define __raw_get_cpu_var(var)			per_cpu__##var
+#define __get_cpu_lock(var, cpu)		per_cpu_lock__##var##_locked
+#define __get_cpu_var_locked(var, cpu)		per_cpu__##var##_locked
 
 #endif	/* SMP */
 

^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2007-12-20 14:37 UTC | newest]

Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2007-12-20 14:15 PPC64 doesn't compile with CONFIG_SMP=n Egor Starkov

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox