diff options
author | Andres Salomon <dilinger@queued.net> | 2008-05-07 16:07:37 -0400 |
---|---|---|
committer | Ingo Molnar <mingo@elte.hu> | 2008-05-08 09:43:50 -0400 |
commit | 547acec7ecc32b14c2740de3f32ce7d1b36a0f69 (patch) | |
tree | c51565daaff629d6cdb1e8ddd5eb02158b59f6ec /include/asm-x86/geode.h | |
parent | ac44cc96fbc8f44c056fa37573e8447eec512b10 (diff) |
x86: GEODE: cache results from geode_has_vsa2() and uninline
This moves geode_has_vsa2 into a .c file, caches the result we get from
the VSA virtual registers, and causes the function to no longer be inline.
[akpm@linux-foundation.org: cleanup]
Signed-off-by: Andres Salomon <dilinger@debian.org>
Cc: Jordan Crouse <jordan.crouse@amd.com>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Thomas Gleixner <tglx@linutronix.de>
Signed-off-by: Ingo Molnar <mingo@elte.hu>
Diffstat (limited to 'include/asm-x86/geode.h')
-rw-r--r-- | include/asm-x86/geode.h | 11 |
1 files changed, 1 insertions, 10 deletions
diff --git a/include/asm-x86/geode.h b/include/asm-x86/geode.h index 7154dc4de951..8a53bc817230 100644 --- a/include/asm-x86/geode.h +++ b/include/asm-x86/geode.h | |||
@@ -185,16 +185,7 @@ static inline int is_geode(void) | |||
185 | return (is_geode_gx() || is_geode_lx()); | 185 | return (is_geode_gx() || is_geode_lx()); |
186 | } | 186 | } |
187 | 187 | ||
188 | /* | 188 | extern int geode_has_vsa2(void); |
189 | * The VSA has virtual registers that we can query for a signature. | ||
190 | */ | ||
191 | static inline int geode_has_vsa2(void) | ||
192 | { | ||
193 | outw(VSA_VR_UNLOCK, VSA_VRC_INDEX); | ||
194 | outw(VSA_VR_SIGNATURE, VSA_VRC_INDEX); | ||
195 | |||
196 | return (inw(VSA_VRC_DATA) == VSA_SIG); | ||
197 | } | ||
198 | 189 | ||
199 | /* MFGPTs */ | 190 | /* MFGPTs */ |
200 | 191 | ||