diff options
author | Jan Beulich <jbeulich@suse.com> | 2011-12-19 09:37:52 +0100 |
---|---|---|
committer | Jan Beulich <jbeulich@suse.com> | 2011-12-19 09:37:52 +0100 |
commit | 0772c12142d609624a958db9b2012d3617dd7c08 (patch) | |
tree | 44c0754d03e78aaf89ea42383b4f47694b0cb48a /xen/include/asm-x86/amd.h | |
parent | 183048e2da7125ec4f1e9e00d94c75b03804c3e9 (diff) | |
download | xen-0772c12142d609624a958db9b2012d3617dd7c08.tar.gz xen-0772c12142d609624a958db9b2012d3617dd7c08.tar.bz2 xen-0772c12142d609624a958db9b2012d3617dd7c08.zip |
x86/AMD: fold redundant parameters of cpu_has_amd_erratum()
The boolean 'osvw' indicator and 'osvw_id' can be folded - the function
can as well distinguish the non-OSVW case by checking for a negative
'osvw_id'. That way the whole variable argument list processing is only
needed on the legacy code path.
Signed-off-by: Jan Beulich <jbeulich@suse.com>
Acked-by: Boris Ostrovsky <boris.ostrovsky@amd.com>
Acked-by: Wei Huang <wei.huang2@amd.com>
Diffstat (limited to 'xen/include/asm-x86/amd.h')
-rw-r--r-- | xen/include/asm-x86/amd.h | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/xen/include/asm-x86/amd.h b/xen/include/asm-x86/amd.h index 2ff818872f..9a7fa3be65 100644 --- a/xen/include/asm-x86/amd.h +++ b/xen/include/asm-x86/amd.h @@ -119,8 +119,8 @@ * */ -#define AMD_LEGACY_ERRATUM(...) 0 /* legacy */, __VA_ARGS__, 0 -#define AMD_OSVW_ERRATUM(osvw_id, ...) 1 /* osvw */, osvw_id, __VA_ARGS__, 0 +#define AMD_LEGACY_ERRATUM(...) -1 /* legacy */, __VA_ARGS__, 0 +#define AMD_OSVW_ERRATUM(osvw_id, ...) osvw_id, __VA_ARGS__, 0 #define AMD_MODEL_RANGE(f, m_start, s_start, m_end, s_end) \ ((f << 24) | (m_start << 16) | (s_start << 12) | (m_end << 4) | (s_end)) #define AMD_MODEL_RANGE_FAMILY(range) (((range) >> 24) & 0xff) |