summaryrefslogtreecommitdiffstats
path: root/arch/x86/include/asm/trace
diff options
context:
space:
mode:
authorDave Hansen <dave.hansen@linux.intel.com>2015-09-02 16:31:28 -0700
committerIngo Molnar <mingo@kernel.org>2015-09-14 12:21:59 +0200
commitee9ae257eb17d3426ee9ab91449a3aa443298b36 (patch)
tree44eebe10cdd9db74adbb5593f8291ebfd478d233 /arch/x86/include/asm/trace
parent8a93c9e0dca131a0bf330ea9d1e57c1bcf3824ad (diff)
downloadblackbird-obmc-linux-ee9ae257eb17d3426ee9ab91449a3aa443298b36.tar.gz
blackbird-obmc-linux-ee9ae257eb17d3426ee9ab91449a3aa443298b36.zip
x86/fpu: Remove 'xfeature_nr'
xfeature_nr ended up being initialized too late for me to use it in the "xsave size sanity check" patch which is later in the series. I tried to move around its initialization but realized that it was just as easy to get rid of it. We only have 9 XFEATURES. Instead of dynamically calculating and storing the last feature, just use the compile-time max: XFEATURES_NR_MAX. Note that even with 'xfeatures_nr' we can had "holes" in the xfeatures_mask that we had to deal with. We also change a 'leaf' variable to be a plain 'i'. Although it is used to grab a cpuid leaf in this one loop, all of the other loops just use an 'i' and I find it much more obvious to keep the naming consistent across all the similar loops. Signed-off-by: Dave Hansen <dave.hansen@linux.intel.com> Cc: Andy Lutomirski <luto@amacapital.net> Cc: Borislav Petkov <bp@alien8.de> Cc: Brian Gerst <brgerst@gmail.com> Cc: Denys Vlasenko <dvlasenk@redhat.com> Cc: Fenghua Yu <fenghua.yu@intel.com> Cc: H. Peter Anvin <hpa@zytor.com> Cc: Linus Torvalds <torvalds@linux-foundation.org> Cc: Peter Zijlstra <peterz@infradead.org> Cc: Thomas Gleixner <tglx@linutronix.de> Cc: Tim Chen <tim.c.chen@linux.intel.com> Cc: dave@sr71.net Cc: linux-kernel@vger.kernel.org Link: http://lkml.kernel.org/r/20150902233128.3F30DF5A@viggo.jf.intel.com Signed-off-by: Ingo Molnar <mingo@kernel.org>
Diffstat (limited to 'arch/x86/include/asm/trace')
0 files changed, 0 insertions, 0 deletions
OpenPOWER on IntegriCloud