Re: [RFC][PATCH 1/3] x86: introduce disabled-features
From: Dave Hansen
Date: Fri Jun 20 2014 - 13:20:32 EST
On 06/20/2014 09:20 AM, H. Peter Anvin wrote:
>> > +#ifdef CONFIG_X86_INTEL_MPX
>> > +# define HAVE_MPX (1<<(X86_FEATURE_MPX & 31))
>> > +#else
>> > +# define HAVE_MPX 0
>> > +#endif
>> > +
> Is this an inverted test?
Yes, that was inverted. I've renamed it to make it a bit easier to read:
#ifdef CONFIG_X86_INTEL_MPX
# define DISABLE_MPX 0
#else
# define DISABLE_MPX (1<<(X86_FEATURE_MPX & 31))
#endif
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/