summaryrefslogtreecommitdiff
path: root/arch/x86/include/asm/microcode_intel.h
diff options
context:
space:
mode:
authorBorislav Petkov <bp@suse.de>2015-02-09 20:10:29 +0300
committerBorislav Petkov <bp@suse.de>2015-03-02 22:32:03 +0300
commit4f5e5f2b574804ed330e20456d5b86a4259544ad (patch)
tree60db4c46f14a4039e93d75fb19eba1a0df5c73dc /arch/x86/include/asm/microcode_intel.h
parentc868570e745781736366b83191aae2ccb9de2d1c (diff)
downloadlinux-4f5e5f2b574804ed330e20456d5b86a4259544ad.tar.xz
x86/microcode/intel: Rename update_match_revision()
... to revision_is_newer() and push it up into the header and make it an inline function. Signed-off-by: Borislav Petkov <bp@suse.de>
Diffstat (limited to 'arch/x86/include/asm/microcode_intel.h')
-rw-r--r--arch/x86/include/asm/microcode_intel.h8
1 files changed, 6 insertions, 2 deletions
diff --git a/arch/x86/include/asm/microcode_intel.h b/arch/x86/include/asm/microcode_intel.h
index dd4c20043ce7..a6b753a131cd 100644
--- a/arch/x86/include/asm/microcode_intel.h
+++ b/arch/x86/include/asm/microcode_intel.h
@@ -60,8 +60,12 @@ extern int
get_matching_microcode(unsigned int csig, int cpf, void *mc, int rev);
extern int microcode_sanity_check(void *mc, int print_err);
extern int get_matching_sig(unsigned int csig, int cpf, void *mc, int rev);
-extern int
-update_match_revision(struct microcode_header_intel *mc_header, int rev);
+
+static inline int
+revision_is_newer(struct microcode_header_intel *mc_header, int rev)
+{
+ return (mc_header->rev <= rev) ? 0 : 1;
+}
#ifdef CONFIG_MICROCODE_INTEL_EARLY
extern void __init load_ucode_intel_bsp(void);