diff options
author | Dave Hansen <dave.hansen@linux.intel.com> | 2016-06-29 23:01:10 +0300 |
---|---|---|
committer | Ingo Molnar <mingo@kernel.org> | 2016-06-30 10:11:32 +0300 |
commit | 8eda072e9d7c3429a372e3635dc5851f4a42dee1 (patch) | |
tree | 6993803c4833ce2947eb086196a6862e9a9a7282 /arch/x86/Makefile_32.cpu | |
parent | 1e61f78baf893c7eb49f633d23ccbb420c8f808e (diff) | |
download | linux-8eda072e9d7c3429a372e3635dc5851f4a42dee1.tar.xz |
x86/cpufeature: Add helper macro for mask check macros
Every time we add a word to our cpu features, we need to add
something like this in two places:
(((bit)>>5)==16 && (1UL<<((bit)&31) & REQUIRED_MASK16))
The trick is getting the "16" in this case in both places. I've
now screwed this up twice, so as pennance, I've come up with
this patch to keep me and other poor souls from doing the same.
I also commented the logic behind the bit manipulation showcased
above.
Signed-off-by: Dave Hansen <dave.hansen@linux.intel.com>
Cc: Andy Lutomirski <luto@kernel.org>
Cc: Borislav Petkov <bp@alien8.de>
Cc: Brian Gerst <brgerst@gmail.com>
Cc: Dave Hansen <dave@sr71.net>
Cc: Denys Vlasenko <dvlasenk@redhat.com>
Cc: H. Peter Anvin <hpa@zytor.com>
Cc: Josh Poimboeuf <jpoimboe@redhat.com>
Cc: Linus Torvalds <torvalds@linux-foundation.org>
Cc: Peter Zijlstra <peterz@infradead.org>
Cc: Thomas Gleixner <tglx@linutronix.de>
Link: http://lkml.kernel.org/r/20160629200110.1BA8949E@viggo.jf.intel.com
Signed-off-by: Ingo Molnar <mingo@kernel.org>
Diffstat (limited to 'arch/x86/Makefile_32.cpu')
0 files changed, 0 insertions, 0 deletions