-
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: 136470 b: refs/heads/master c: 49a93bc h: refs/heads/master v: v3
- Loading branch information
Ingo Molnar
committed
Jan 15, 2009
1 parent
dcd1439
commit faf6f66
Showing
108 changed files
with
1,577 additions
and
1,287 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: ae2b56b92bd33b416528986528e0732c98c7a285 | ||
refs/heads/master: 49a93bc978b4b3d564f6b330179b4cc2724a031d |
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 was deleted.
Oops, something went wrong.
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,21 +1,39 @@ | ||
#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 percpu_read(current_task); | ||
return read_pda(pcurrent); | ||
} | ||
|
||
#define current get_current() | ||
#else /* __ASSEMBLY__ */ | ||
|
||
#include <asm/asm-offsets.h> | ||
#define GET_CURRENT(reg) movq %gs:(pda_pcurrent),reg | ||
|
||
#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.