x86/microcode/intel: Rename get_matching_sig()
authorBorislav Petkov <bp@suse.de>
Sun, 17 May 2015 10:55:01 +0000 (12:55 +0200)
committerIngo Molnar <mingo@kernel.org>
Mon, 18 May 2015 07:32:37 +0000 (09:32 +0200)
... to find_matching_signature() which is exactly what it does.

No functionality change.

Signed-off-by: Borislav Petkov <bp@suse.de>
Cc: H. Peter Anvin <hpa@zytor.com>
Cc: Linus Torvalds <torvalds@linux-foundation.org>
Cc: Peter Zijlstra <peterz@infradead.org>
Cc: Quentin Casasnovas <quentin.casasnovas@oracle.com>
Cc: Thomas Gleixner <tglx@linutronix.de>
Link: http://lkml.kernel.org/r/1431860101-14847-5-git-send-email-bp@alien8.de
Signed-off-by: Ingo Molnar <mingo@kernel.org>
arch/x86/include/asm/microcode_intel.h
arch/x86/kernel/cpu/microcode/intel_early.c
arch/x86/kernel/cpu/microcode/intel_lib.c

index 45a318f677be490bd5b9ff5147160b7d03ee4d0a..7991c606125d01b137a6f0e1ed16f1e8c1d86015 100644 (file)
@@ -55,7 +55,7 @@ struct extended_sigtable {
 
 extern int has_newer_microcode(void *mc, unsigned int csig, int cpf, int rev);
 extern int microcode_sanity_check(void *mc, int print_err);
-extern int get_matching_sig(unsigned int csig, int cpf, void *mc);
+extern int find_matching_signature(void *mc, unsigned int csig, int cpf);
 
 #ifdef CONFIG_MICROCODE_INTEL_EARLY
 extern void __init load_ucode_intel_bsp(void);
index 5f828268357de7cdf47e8bd22bd4c9657cb5c56a..10dff3f3f686df286975d012be3a851fe6595389 100644 (file)
@@ -256,7 +256,7 @@ static unsigned int _save_mc(struct microcode_intel **mc_saved,
                sig          = mc_saved_hdr->sig;
                pf           = mc_saved_hdr->pf;
 
-               if (!get_matching_sig(sig, pf, ucode_ptr))
+               if (!find_matching_signature(ucode_ptr, sig, pf))
                        continue;
 
                found = 1;
index def9c935f3f904960afba74e89d1765958d8a9e3..1883d252ff7d60ce7707a8108283144de64ce14d 100644 (file)
@@ -131,7 +131,7 @@ EXPORT_SYMBOL_GPL(microcode_sanity_check);
 /*
  * Returns 1 if update has been found, 0 otherwise.
  */
-int get_matching_sig(unsigned int csig, int cpf, void *mc)
+int find_matching_signature(void *mc, unsigned int csig, int cpf)
 {
        struct microcode_header_intel *mc_hdr = mc;
        struct extended_sigtable *ext_hdr;
@@ -166,6 +166,6 @@ int has_newer_microcode(void *mc, unsigned int csig, int cpf, int new_rev)
        if (mc_hdr->rev <= new_rev)
                return 0;
 
-       return get_matching_sig(csig, cpf, mc);
+       return find_matching_signature(mc, csig, cpf);
 }
 EXPORT_SYMBOL_GPL(has_newer_microcode);