-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
yaml --- r: 43007 b: refs/heads/master c: be44d2a h: refs/heads/master i: 43005: 3501f03 43003: cf7c019 42999: ec53824 42991: 1d7a819 42975: 291a219 42943: 4d2bc73 42879: 4862dfc 42751: a78ab00 42495: cdaad9d 41983: 132395c 40959: 33a155d v: v3
- Loading branch information
Stas Sergeev
authored and
Andi Kleen
committed
Dec 7, 2006
1 parent
fa47f74
commit 23e9d19
Showing
8 changed files
with
104 additions
and
98 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,2 +1,2 @@ | ||
--- | ||
refs/heads/master: bb81a09e55eaf7e5f798468ab971469b6f66a259 | ||
refs/heads/master: be44d2aabce2d62f72d5751d1871b6212bf7a1c7 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,31 @@ | ||
#ifndef __ARCH_I386_PERCPU__ | ||
#define __ARCH_I386_PERCPU__ | ||
|
||
#ifndef __ASSEMBLY__ | ||
#include <asm-generic/percpu.h> | ||
#else | ||
|
||
/* | ||
* PER_CPU finds an address of a per-cpu variable. | ||
* | ||
* Args: | ||
* var - variable name | ||
* cpu - 32bit register containing the current CPU number | ||
* | ||
* The resulting address is stored in the "cpu" argument. | ||
* | ||
* Example: | ||
* PER_CPU(cpu_gdt_descr, %ebx) | ||
*/ | ||
#ifdef CONFIG_SMP | ||
#define PER_CPU(var, cpu) \ | ||
movl __per_cpu_offset(,cpu,4), cpu; \ | ||
addl $per_cpu__/**/var, cpu; | ||
#else /* ! SMP */ | ||
#define PER_CPU(var, cpu) \ | ||
movl $per_cpu__/**/var, cpu; | ||
#endif /* SMP */ | ||
|
||
#endif /* !__ASSEMBLY__ */ | ||
|
||
#endif /* __ARCH_I386_PERCPU__ */ |