diff options
author | Andi Kleen <ak@suse.de> | 2006-01-11 16:45:30 -0500 |
---|---|---|
committer | Linus Torvalds <torvalds@g5.osdl.org> | 2006-01-11 22:04:58 -0500 |
commit | 2c8bc9446a853f4f36475ce314808dd92201f74e (patch) | |
tree | 9f69acf8a0d5fabd85f753ecff8bbd77b3aacdc4 /arch/x86_64/kernel/vsyscall.c | |
parent | 487472bc01fab0625996aad37836aad931e4eda9 (diff) |
[PATCH] x86_64: Use standard __always_inline in vsyscall.c
Replacing the old home brewn __force_inline.
Signed-off-by: Andi Kleen <ak@suse.de>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
Diffstat (limited to 'arch/x86_64/kernel/vsyscall.c')
-rw-r--r-- | arch/x86_64/kernel/vsyscall.c | 11 |
1 files changed, 5 insertions, 6 deletions
diff --git a/arch/x86_64/kernel/vsyscall.c b/arch/x86_64/kernel/vsyscall.c index 9e51047fc410..9468fb20b0bc 100644 --- a/arch/x86_64/kernel/vsyscall.c +++ b/arch/x86_64/kernel/vsyscall.c | |||
@@ -35,14 +35,13 @@ | |||
35 | #include <asm/io.h> | 35 | #include <asm/io.h> |
36 | 36 | ||
37 | #define __vsyscall(nr) __attribute__ ((unused,__section__(".vsyscall_" #nr))) | 37 | #define __vsyscall(nr) __attribute__ ((unused,__section__(".vsyscall_" #nr))) |
38 | #define force_inline __attribute__((always_inline)) inline | ||
39 | 38 | ||
40 | int __sysctl_vsyscall __section_sysctl_vsyscall = 1; | 39 | int __sysctl_vsyscall __section_sysctl_vsyscall = 1; |
41 | seqlock_t __xtime_lock __section_xtime_lock = SEQLOCK_UNLOCKED; | 40 | seqlock_t __xtime_lock __section_xtime_lock = SEQLOCK_UNLOCKED; |
42 | 41 | ||
43 | #include <asm/unistd.h> | 42 | #include <asm/unistd.h> |
44 | 43 | ||
45 | static force_inline void timeval_normalize(struct timeval * tv) | 44 | static __always_inline void timeval_normalize(struct timeval * tv) |
46 | { | 45 | { |
47 | time_t __sec; | 46 | time_t __sec; |
48 | 47 | ||
@@ -53,7 +52,7 @@ static force_inline void timeval_normalize(struct timeval * tv) | |||
53 | } | 52 | } |
54 | } | 53 | } |
55 | 54 | ||
56 | static force_inline void do_vgettimeofday(struct timeval * tv) | 55 | static __always_inline void do_vgettimeofday(struct timeval * tv) |
57 | { | 56 | { |
58 | long sequence, t; | 57 | long sequence, t; |
59 | unsigned long sec, usec; | 58 | unsigned long sec, usec; |
@@ -83,12 +82,12 @@ static force_inline void do_vgettimeofday(struct timeval * tv) | |||
83 | } | 82 | } |
84 | 83 | ||
85 | /* RED-PEN may want to readd seq locking, but then the variable should be write-once. */ | 84 | /* RED-PEN may want to readd seq locking, but then the variable should be write-once. */ |
86 | static force_inline void do_get_tz(struct timezone * tz) | 85 | static __always_inline void do_get_tz(struct timezone * tz) |
87 | { | 86 | { |
88 | *tz = __sys_tz; | 87 | *tz = __sys_tz; |
89 | } | 88 | } |
90 | 89 | ||
91 | static force_inline int gettimeofday(struct timeval *tv, struct timezone *tz) | 90 | static __always_inline int gettimeofday(struct timeval *tv, struct timezone *tz) |
92 | { | 91 | { |
93 | int ret; | 92 | int ret; |
94 | asm volatile("vsysc2: syscall" | 93 | asm volatile("vsysc2: syscall" |
@@ -97,7 +96,7 @@ static force_inline int gettimeofday(struct timeval *tv, struct timezone *tz) | |||
97 | return ret; | 96 | return ret; |
98 | } | 97 | } |
99 | 98 | ||
100 | static force_inline long time_syscall(long *t) | 99 | static __always_inline long time_syscall(long *t) |
101 | { | 100 | { |
102 | long secs; | 101 | long secs; |
103 | asm volatile("vsysc1: syscall" | 102 | asm volatile("vsysc1: syscall" |