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>
This commit is contained in:
committed by
Ingo Molnar
parent
ac44cc96fb
commit
547acec7ec
@ -185,16 +185,7 @@ static inline int is_geode(void)
|
||||
return (is_geode_gx() || is_geode_lx());
|
||||
}
|
||||
|
||||
/*
|
||||
* The VSA has virtual registers that we can query for a signature.
|
||||
*/
|
||||
static inline int geode_has_vsa2(void)
|
||||
{
|
||||
outw(VSA_VR_UNLOCK, VSA_VRC_INDEX);
|
||||
outw(VSA_VR_SIGNATURE, VSA_VRC_INDEX);
|
||||
|
||||
return (inw(VSA_VRC_DATA) == VSA_SIG);
|
||||
}
|
||||
extern int geode_has_vsa2(void);
|
||||
|
||||
/* MFGPTs */
|
||||
|
||||
|
Reference in New Issue
Block a user