|
@@ -577,7 +577,7 @@ static void microcode_init_cpu(int cpu)
|
|
set_cpus_allowed(current, cpumask_of_cpu(cpu));
|
|
set_cpus_allowed(current, cpumask_of_cpu(cpu));
|
|
mutex_lock(µcode_mutex);
|
|
mutex_lock(µcode_mutex);
|
|
collect_cpu_info(cpu);
|
|
collect_cpu_info(cpu);
|
|
- if (uci->valid)
|
|
|
|
|
|
+ if (uci->valid && system_state == SYSTEM_RUNNING)
|
|
cpu_request_microcode(cpu);
|
|
cpu_request_microcode(cpu);
|
|
mutex_unlock(µcode_mutex);
|
|
mutex_unlock(µcode_mutex);
|
|
set_cpus_allowed(current, old);
|
|
set_cpus_allowed(current, old);
|