-
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: 136439 b: refs/heads/master c: c6f5e0a h: refs/heads/master i: 136437: 5c95f72 136435: f717b70 136431: 0fdb107 v: v3
- Loading branch information
Brian Gerst
authored and
Tejun Heo
committed
Jan 18, 2009
1 parent
68d61f3
commit f6e037b
Showing
10 changed files
with
16 additions
and
37 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: ea9279066de44053d0c20ea855bc9f4706652d84 | ||
refs/heads/master: c6f5e0acd5d12ee23f701f15889872e67b47caa6 |
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 percpu_read(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
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