|
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] Re: [Xen-devel] [PATCH] x86/AMD: fold redundant parameters of cpu_has_amd_erratum()
Acked-by: Wei Huang <wei.huang2@xxxxxxx> On 12/16/2011 10:55 AM, Boris Ostrovsky wrote: On 12/16/11 10:23, Jan Beulich wrote: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@xxxxxxxx>Acked-by: Boris Ostrovsky <boris.ostrovsky@xxxxxxx>--- a/xen/arch/x86/cpu/amd.c +++ b/xen/arch/x86/cpu/amd.c @@ -186,7 +186,7 @@ static void __devinit set_cpuidmask(cons* Check for the presence of an AMD erratum. Arguments are defined in amd.h* for each known erratum. Return 1 if erratum is found. */ -int cpu_has_amd_erratum(const struct cpuinfo_x86 *cpu, int osvw, ...)+int cpu_has_amd_erratum(const struct cpuinfo_x86 *cpu, int osvw_id, ...) _______________________________________________ Xen-devel mailing list Xen-devel@xxxxxxxxxxxxxxxxxxx http://lists.xensource.com/xen-devel
|
![]() |
Lists.xenproject.org is hosted with RackSpace, monitoring our |