[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Date: Mon, 3 Mar 2008 14:12:31 -0300
From: Glauber Costa <gcosta@...hat.com>
To: linux-kernel@...r.kernel.org
Cc: akpm@...ux-foundation.org, glommer@...il.com, mingo@...e.hu,
tglx@...utronix.de, Glauber Costa <gcosta@...hat.com>
Subject: [PATCH 03/52] merge extern variables definitions
move extern definitions that are the same between smp_{32,64}.h
to smp.h
Signed-off-by: Glauber Costa <gcosta@...hat.com>
---
include/asm-x86/smp.h | 6 ++++++
include/asm-x86/smp_32.h | 4 ----
include/asm-x86/smp_64.h | 4 ----
3 files changed, 6 insertions(+), 8 deletions(-)
diff --git a/include/asm-x86/smp.h b/include/asm-x86/smp.h
index ad7b99d..c130a87 100644
--- a/include/asm-x86/smp.h
+++ b/include/asm-x86/smp.h
@@ -1,6 +1,12 @@
#ifndef _ASM_X86_SMP_H_
#define _ASM_X86_SMP_H_
#ifndef __ASSEMBLY__
+#include <linux/cpumask.h>
+
+extern cpumask_t cpu_callout_map;
+
+extern int smp_num_siblings;
+extern unsigned int num_processors;
#ifdef CONFIG_X86_32
# include "smp_32.h"
diff --git a/include/asm-x86/smp_32.h b/include/asm-x86/smp_32.h
index 2781225..9a4057d 100644
--- a/include/asm-x86/smp_32.h
+++ b/include/asm-x86/smp_32.h
@@ -16,12 +16,8 @@
# endif
#endif
-extern cpumask_t cpu_callout_map;
extern cpumask_t cpu_callin_map;
-extern int smp_num_siblings;
-extern unsigned int num_processors;
-
extern void (*mtrr_hook) (void);
extern void zap_low_mappings (void);
diff --git a/include/asm-x86/smp_64.h b/include/asm-x86/smp_64.h
index 2c21df2..284f701 100644
--- a/include/asm-x86/smp_64.h
+++ b/include/asm-x86/smp_64.h
@@ -13,12 +13,8 @@
#include <asm/pda.h>
#include <asm/thread_info.h>
-extern cpumask_t cpu_callout_map;
extern cpumask_t cpu_initialized;
-extern int smp_num_siblings;
-extern unsigned int num_processors;
-
extern int smp_call_function_mask(cpumask_t mask, void (*func)(void *),
void *info, int wait);
--
1.5.0.6
--
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