diff options
Diffstat (limited to 'arch/x86/kernel/cpu/microcode/intel.c')
| -rw-r--r-- | arch/x86/kernel/cpu/microcode/intel.c | 10 | 
1 files changed, 5 insertions, 5 deletions
| diff --git a/arch/x86/kernel/cpu/microcode/intel.c b/arch/x86/kernel/cpu/microcode/intel.c index a15db2b4e0d6..923054a6b760 100644 --- a/arch/x86/kernel/cpu/microcode/intel.c +++ b/arch/x86/kernel/cpu/microcode/intel.c @@ -772,7 +772,7 @@ static int collect_cpu_info(int cpu_num, struct cpu_signature *csig)  	return 0;  } -static int apply_microcode_intel(int cpu) +static enum ucode_state apply_microcode_intel(int cpu)  {  	struct microcode_intel *mc;  	struct ucode_cpu_info *uci; @@ -782,7 +782,7 @@ static int apply_microcode_intel(int cpu)  	/* We should bind the task to the CPU */  	if (WARN_ON(raw_smp_processor_id() != cpu)) -		return -1; +		return UCODE_ERROR;  	uci = ucode_cpu_info + cpu;  	mc = uci->mc; @@ -790,7 +790,7 @@ static int apply_microcode_intel(int cpu)  		/* Look for a newer patch in our cache: */  		mc = find_patch(uci);  		if (!mc) -			return 0; +			return UCODE_NFOUND;  	}  	/* write microcode via MSR 0x79 */ @@ -801,7 +801,7 @@ static int apply_microcode_intel(int cpu)  	if (rev != mc->hdr.rev) {  		pr_err("CPU%d update to revision 0x%x failed\n",  		       cpu, mc->hdr.rev); -		return -1; +		return UCODE_ERROR;  	}  	if (rev != prev_rev) { @@ -818,7 +818,7 @@ static int apply_microcode_intel(int cpu)  	uci->cpu_sig.rev = rev;  	c->microcode = rev; -	return 0; +	return UCODE_UPDATED;  }  static enum ucode_state generic_load_microcode(int cpu, void *data, size_t size, |