Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 136745
b: refs/heads/master
c: d377044
h: refs/heads/master
i:
  136743: 0ba298d
v: v3
  • Loading branch information
Brian Gerst authored and Ingo Molnar committed Feb 9, 2009
1 parent 2aff085 commit 1468211
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 4 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: 56fc82c5360cdf0b250b5eb74f38657b0402faa5
refs/heads/master: d3770449d3cb058b94ca1d050d5ced4a66c75ce4
4 changes: 2 additions & 2 deletions trunk/arch/ia64/include/asm/percpu.h
Original file line number Diff line number Diff line change
Expand Up @@ -27,12 +27,12 @@ extern void *per_cpu_init(void);

#else /* ! SMP */

#define PER_CPU_ATTRIBUTES __attribute__((__section__(".data.percpu")))

#define per_cpu_init() (__phys_per_cpu_start)

#endif /* SMP */

#define PER_CPU_BASE_SECTION ".data.percpu"

/*
* Be extremely careful when taking the address of this variable! Due to virtual
* remapping, it is different from the canonical address returned by __get_cpu_var(var)!
Expand Down
8 changes: 7 additions & 1 deletion trunk/include/linux/percpu.h
Original file line number Diff line number Diff line change
Expand Up @@ -8,8 +8,15 @@

#include <asm/percpu.h>

#ifndef PER_CPU_BASE_SECTION
#ifdef CONFIG_SMP
#define PER_CPU_BASE_SECTION ".data.percpu"
#else
#define PER_CPU_BASE_SECTION ".data"
#endif
#endif

#ifdef CONFIG_SMP

#ifdef MODULE
#define PER_CPU_SHARED_ALIGNED_SECTION ""
Expand All @@ -20,7 +27,6 @@

#else

#define PER_CPU_BASE_SECTION ".data"
#define PER_CPU_SHARED_ALIGNED_SECTION ""
#define PER_CPU_FIRST_SECTION ""

Expand Down

0 comments on commit 1468211

Please sign in to comment.