|
@@ -122,10 +122,9 @@ int microcode_sanity_check(void *mc, int print_err)
|
|
|
EXPORT_SYMBOL_GPL(microcode_sanity_check);
|
|
|
|
|
|
/*
|
|
|
- * return 0 - no update found
|
|
|
- * return 1 - found update
|
|
|
+ * Returns 1 if update has been found, 0 otherwise.
|
|
|
*/
|
|
|
-int get_matching_sig(unsigned int csig, int cpf, void *mc, int rev)
|
|
|
+int get_matching_sig(unsigned int csig, int cpf, int rev, void *mc)
|
|
|
{
|
|
|
struct microcode_header_intel *mc_header = mc;
|
|
|
struct extended_sigtable *ext_header;
|
|
@@ -153,16 +152,15 @@ int get_matching_sig(unsigned int csig, int cpf, void *mc, int rev)
|
|
|
}
|
|
|
|
|
|
/*
|
|
|
- * return 0 - no update found
|
|
|
- * return 1 - found update
|
|
|
+ * Returns 1 if update has been found, 0 otherwise.
|
|
|
*/
|
|
|
-int get_matching_microcode(unsigned int csig, int cpf, void *mc, int rev)
|
|
|
+int get_matching_microcode(unsigned int csig, int cpf, int rev, void *mc)
|
|
|
{
|
|
|
- struct microcode_header_intel *mc_header = mc;
|
|
|
+ struct microcode_header_intel *mc_hdr = mc;
|
|
|
|
|
|
- if (!revision_is_newer(mc_header, rev))
|
|
|
+ if (!revision_is_newer(mc_hdr, rev))
|
|
|
return 0;
|
|
|
|
|
|
- return get_matching_sig(csig, cpf, mc, rev);
|
|
|
+ return get_matching_sig(csig, cpf, rev, mc);
|
|
|
}
|
|
|
EXPORT_SYMBOL_GPL(get_matching_microcode);
|