From: hamo.by@gmail.com (hamo.by at gmail.com)
To: linux-arm-kernel@lists.infradead.org
Subject: [PATCH RFC] arm: Define cpu_logical_map when CONFIG_SMP is not set
Date: Thu, 5 Jan 2012 20:44:46 +0800 [thread overview]
Message-ID: <1325767486-6392-1-git-send-email-hamo.by@gmail.com> (raw)
From: Yang Bai <hamo.by@gmail.com>
If CONFIG_SMP is not set, define cpu_logical_map(cpu) as
(cpu), this fixes the problem described in this mail:
https://lkml.org/lkml/2012/1/2/142
Signed-off-by: Yang Bai <hamo.by@gmail.com>
---
arch/arm/include/asm/smp.h | 12 ++++++++----
1 files changed, 8 insertions(+), 4 deletions(-)
diff --git a/arch/arm/include/asm/smp.h b/arch/arm/include/asm/smp.h
index 1e5717a..0a06ead 100644
--- a/arch/arm/include/asm/smp.h
+++ b/arch/arm/include/asm/smp.h
@@ -10,14 +10,12 @@
#ifndef __ASM_ARM_SMP_H
#define __ASM_ARM_SMP_H
+#ifdef CONFIG_SMP
+
#include <linux/threads.h>
#include <linux/cpumask.h>
#include <linux/thread_info.h>
-#ifndef CONFIG_SMP
-# error "<asm/smp.h> included in non-SMP build"
-#endif
-
#define raw_smp_processor_id() (current_thread_info()->cpu)
struct seq_file;
@@ -99,4 +97,10 @@ extern void platform_cpu_enable(unsigned int cpu);
extern void arch_send_call_function_single_ipi(int cpu);
extern void arch_send_call_function_ipi_mask(const struct cpumask *mask);
+#else
+
+#define cpu_logical_map(cpu) (cpu)
+
+#endif /* CONFIG_SMP */
+
#endif /* ifndef __ASM_ARM_SMP_H */
--
1.7.8.2
next reply other threads:[~2012-01-05 12:44 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2012-01-05 12:44 hamo.by at gmail.com [this message]
2012-01-05 15:01 ` [PATCH RFC] arm: Define cpu_logical_map when CONFIG_SMP is not set Russell King - ARM Linux
2012-01-05 16:15 ` Will Deacon
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=1325767486-6392-1-git-send-email-hamo.by@gmail.com \
--to=hamo.by@gmail.com \
--cc=linux-arm-kernel@lists.infradead.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;
as well as URLs for NNTP newsgroup(s).