public inbox for linux-kernel@vger.kernel.org
 help / color / mirror / Atom feed
From: Egor Starkov <estarkov@ru.mvista.com>
To: mingo@elte.hu
Cc: rostedt@goodmis.org, linux-rt-users@vger.kernel.org,
	linux-kernel@vger.kernel.org, linuxppc-dev@ozlabs.org
Subject: PPC64 doesn't compile with CONFIG_SMP=n
Date: Thu, 20 Dec 2007 17:15:38 +0300	[thread overview]
Message-ID: <476A790A.2060203@ru.mvista.com> (raw)

[-- 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 */
 

                 reply	other threads:[~2007-12-20 14:37 UTC|newest]

Thread overview: [no followups] expand[flat|nested]  mbox.gz  Atom feed

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=476A790A.2060203@ru.mvista.com \
    --to=estarkov@ru.mvista.com \
    --cc=linux-kernel@vger.kernel.org \
    --cc=linux-rt-users@vger.kernel.org \
    --cc=linuxppc-dev@ozlabs.org \
    --cc=mingo@elte.hu \
    --cc=rostedt@goodmis.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox