Skip to content
Snippets Groups Projects
  • Borislav Petkov's avatar
    e12edd02
    x86/cpufeature: Carve out X86_FEATURE_* · e12edd02
    Borislav Petkov authored
    
    commit cd4d09ec upstream.
    
    Move them to a separate header and have the following
    dependency:
    
      x86/cpufeatures.h <- x86/processor.h <- x86/cpufeature.h
    
    This makes it easier to use the header in asm code and not
    include the whole cpufeature.h and add guards for asm.
    
    Suggested-by: default avatarH. Peter Anvin <hpa@zytor.com>
    Signed-off-by: default avatarBorislav Petkov <bp@suse.de>
    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: Linus Torvalds <torvalds@linux-foundation.org>
    Cc: Peter Zijlstra <peterz@infradead.org>
    Cc: Thomas Gleixner <tglx@linutronix.de>
    Link: http://lkml.kernel.org/r/1453842730-28463-5-git-send-email-bp@alien8.de
    
    
    Signed-off-by: default avatarIngo Molnar <mingo@kernel.org>
    [bwh: Backported to 3.16 to avoid a dependency loop:
     - Drop some inapplicable changes
     - Move all the previously backported feature and bug flags across
     - Also change <asm/nospec-branch.h> and lib/retpoline.S to use
       <asm/cpufeatures.h>
     - Also include <asm/cpufeatures.h> in <asm/barrier.h>, as the vdso fails to
       build without that
     - Adjust context]
    Signed-off-by: default avatarBen Hutchings <ben@decadent.org.uk>
    e12edd02
    History
    x86/cpufeature: Carve out X86_FEATURE_*
    Borislav Petkov authored
    
    commit cd4d09ec upstream.
    
    Move them to a separate header and have the following
    dependency:
    
      x86/cpufeatures.h <- x86/processor.h <- x86/cpufeature.h
    
    This makes it easier to use the header in asm code and not
    include the whole cpufeature.h and add guards for asm.
    
    Suggested-by: default avatarH. Peter Anvin <hpa@zytor.com>
    Signed-off-by: default avatarBorislav Petkov <bp@suse.de>
    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: Linus Torvalds <torvalds@linux-foundation.org>
    Cc: Peter Zijlstra <peterz@infradead.org>
    Cc: Thomas Gleixner <tglx@linutronix.de>
    Link: http://lkml.kernel.org/r/1453842730-28463-5-git-send-email-bp@alien8.de
    
    
    Signed-off-by: default avatarIngo Molnar <mingo@kernel.org>
    [bwh: Backported to 3.16 to avoid a dependency loop:
     - Drop some inapplicable changes
     - Move all the previously backported feature and bug flags across
     - Also change <asm/nospec-branch.h> and lib/retpoline.S to use
       <asm/cpufeatures.h>
     - Also include <asm/cpufeatures.h> in <asm/barrier.h>, as the vdso fails to
       build without that
     - Adjust context]
    Signed-off-by: default avatarBen Hutchings <ben@decadent.org.uk>
Code owners
Assign users and groups as approvers for specific file changes. Learn more.