x86/cpufeature: Cleanup get_cpu_cap()
Add an enum for the ->x86_capability array indices and cleanup get_cpu_cap() by killing some redundant local vars. Signed-off-by:Borislav Petkov <bp@suse.de> Link: http://lkml.kernel.org/r/1449481182-27541-3-git-send-email-bp@alien8.de Signed-off-by:
Thomas Gleixner <tglx@linutronix.de>
Showing
- arch/x86/include/asm/cpufeature.h 20 additions, 0 deletionsarch/x86/include/asm/cpufeature.h
- arch/x86/kernel/cpu/centaur.c 1 addition, 1 deletionarch/x86/kernel/cpu/centaur.c
- arch/x86/kernel/cpu/common.c 22 additions, 25 deletionsarch/x86/kernel/cpu/common.c
- arch/x86/kernel/cpu/transmeta.c 2 additions, 2 deletionsarch/x86/kernel/cpu/transmeta.c
Please register or sign in to comment