Skip to content

Commit

Permalink
x86: merge extern variables definitions
Browse files Browse the repository at this point in the history
move extern definitions that are the same between smp_{32,64}.h
to smp.h

Signed-off-by: Glauber Costa <gcosta@redhat.com>
Signed-off-by: Ingo Molnar <mingo@elte.hu>
  • Loading branch information
Glauber Costa authored and Ingo Molnar committed Apr 17, 2008
1 parent 639acb1 commit 53ebef4
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 8 deletions.
6 changes: 6 additions & 0 deletions include/asm-x86/smp.h
Original file line number Diff line number Diff line change
@@ -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"
Expand Down
4 changes: 0 additions & 4 deletions include/asm-x86/smp_32.h
Original file line number Diff line number Diff line change
Expand Up @@ -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);

Expand Down
4 changes: 0 additions & 4 deletions include/asm-x86/smp_64.h
Original file line number Diff line number Diff line change
Expand Up @@ -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);

Expand Down

0 comments on commit 53ebef4

Please sign in to comment.