-
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.
- Loading branch information
Ingo Molnar
committed
Jan 21, 2009
1 parent
027225a
commit 03e159a
Showing
107 changed files
with
1,287 additions
and
1,578 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: 5766b842b23c6b40935a5f3bd435b2bcdaff2143 | ||
refs/heads/master: 3eb3963fd1974c63e9bb3cfe774abc3e1995e479 |
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
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 |
---|---|---|
@@ -0,0 +1,28 @@ | ||
#ifndef _ASM_X86_CPUMASK_H | ||
#define _ASM_X86_CPUMASK_H | ||
#ifndef __ASSEMBLY__ | ||
#include <linux/cpumask.h> | ||
|
||
#ifdef CONFIG_X86_64 | ||
|
||
extern cpumask_var_t cpu_callin_mask; | ||
extern cpumask_var_t cpu_callout_mask; | ||
extern cpumask_var_t cpu_initialized_mask; | ||
extern cpumask_var_t cpu_sibling_setup_mask; | ||
|
||
#else /* CONFIG_X86_32 */ | ||
|
||
extern cpumask_t cpu_callin_map; | ||
extern cpumask_t cpu_callout_map; | ||
extern cpumask_t cpu_initialized; | ||
extern cpumask_t cpu_sibling_setup_map; | ||
|
||
#define cpu_callin_mask ((struct cpumask *)&cpu_callin_map) | ||
#define cpu_callout_mask ((struct cpumask *)&cpu_callout_map) | ||
#define cpu_initialized_mask ((struct cpumask *)&cpu_initialized) | ||
#define cpu_sibling_setup_mask ((struct cpumask *)&cpu_sibling_setup_map) | ||
|
||
#endif /* CONFIG_X86_32 */ | ||
|
||
#endif /* __ASSEMBLY__ */ | ||
#endif /* _ASM_X86_CPUMASK_H */ |
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,39 +1,21 @@ | ||
#ifndef _ASM_X86_CURRENT_H | ||
#define _ASM_X86_CURRENT_H | ||
|
||
#ifdef CONFIG_X86_32 | ||
#include <linux/compiler.h> | ||
#include <asm/percpu.h> | ||
|
||
#ifndef __ASSEMBLY__ | ||
struct task_struct; | ||
|
||
DECLARE_PER_CPU(struct task_struct *, current_task); | ||
static __always_inline struct task_struct *get_current(void) | ||
{ | ||
return x86_read_percpu(current_task); | ||
} | ||
|
||
#else /* X86_32 */ | ||
|
||
#ifndef __ASSEMBLY__ | ||
#include <asm/pda.h> | ||
|
||
struct task_struct; | ||
|
||
static __always_inline struct task_struct *get_current(void) | ||
{ | ||
return read_pda(pcurrent); | ||
return percpu_read(current_task); | ||
} | ||
|
||
#else /* __ASSEMBLY__ */ | ||
|
||
#include <asm/asm-offsets.h> | ||
#define GET_CURRENT(reg) movq %gs:(pda_pcurrent),reg | ||
#define current get_current() | ||
|
||
#endif /* __ASSEMBLY__ */ | ||
|
||
#endif /* X86_32 */ | ||
|
||
#define current get_current() | ||
|
||
#endif /* _ASM_X86_CURRENT_H */ |
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
Oops, something went wrong.