diff options
author | Dave Jones <davej@codemonkey.org.uk> | 2008-03-26 12:09:16 -0400 |
---|---|---|
committer | Ingo Molnar <mingo@elte.hu> | 2008-04-17 17:41:31 +0200 |
commit | 0e03eb86b51b21054aea01ada1d03e9c2265dd20 (patch) | |
tree | e1681847d9ce7c7a2613dfe75d98c4023fb0d007 /arch/x86/vdso | |
parent | aa040b2f0693695ae393cd9b8a93055952dbf76f (diff) | |
download | kernel_samsung_espresso10-0e03eb86b51b21054aea01ada1d03e9c2265dd20.zip kernel_samsung_espresso10-0e03eb86b51b21054aea01ada1d03e9c2265dd20.tar.gz kernel_samsung_espresso10-0e03eb86b51b21054aea01ada1d03e9c2265dd20.tar.bz2 |
x86: Centaur Isaiah processor to use sysenter in 64-bit compatibility mode rather than syscall
Upcoming 64 bit processors from Centaur can use sysenter.
Signed-off-by: Dave Jones <davej@codemonkey.org.uk>
Signed-off-by: Jesse Ahrens <jahrens@centtech.com>
Signed-off-by: Ingo Molnar <mingo@elte.hu>
Diffstat (limited to 'arch/x86/vdso')
-rw-r--r-- | arch/x86/vdso/vdso32-setup.c | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/arch/x86/vdso/vdso32-setup.c b/arch/x86/vdso/vdso32-setup.c index f7e78d8..e2af8ee 100644 --- a/arch/x86/vdso/vdso32-setup.c +++ b/arch/x86/vdso/vdso32-setup.c @@ -210,8 +210,12 @@ static int use_sysenter __read_mostly = -1; /* May not be __init: called during resume */ void syscall32_cpu_init(void) { - if (use_sysenter < 0) - use_sysenter = (boot_cpu_data.x86_vendor == X86_VENDOR_INTEL); + if (use_sysenter < 0) { + if (boot_cpu_data.x86_vendor == X86_VENDOR_INTEL) + use_sysenter = 1; + if (boot_cpu_data.x86_vendor == X86_VENDOR_CENTAUR) + use_sysenter = 1; + } /* Load these always in case some future AMD CPU supports SYSENTER from compat mode too. */ |