Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 375641
b: refs/heads/master
c: 074d72f
h: refs/heads/master
i:
  375639: 6bfcf73
v: v3
  • Loading branch information
Konrad Rzeszutek Wilk authored and Ingo Molnar committed May 9, 2013
1 parent bef55c7 commit eeb5575
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 3 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: 97a5b81fa4d3a11dcdf224befc577f2e0abadc0b
refs/heads/master: 074d72ff57f65de779e2f70d5906964c0ba1c123
5 changes: 3 additions & 2 deletions trunk/arch/x86/kernel/microcode_intel_early.c
Original file line number Diff line number Diff line change
Expand Up @@ -487,6 +487,7 @@ static inline void show_saved_mc(void)
#endif

#if defined(CONFIG_MICROCODE_INTEL_EARLY) && defined(CONFIG_HOTPLUG_CPU)
static DEFINE_MUTEX(x86_cpu_microcode_mutex);
/*
* Save this mc into mc_saved_data. So it will be loaded early when a CPU is
* hot added or resumes.
Expand All @@ -507,7 +508,7 @@ int save_mc_for_early(u8 *mc)
* Hold hotplug lock so mc_saved_data is not accessed by a CPU in
* hotplug.
*/
cpu_hotplug_driver_lock();
mutex_lock(&x86_cpu_microcode_mutex);

mc_saved_count_init = mc_saved_data.mc_saved_count;
mc_saved_count = mc_saved_data.mc_saved_count;
Expand Down Expand Up @@ -544,7 +545,7 @@ int save_mc_for_early(u8 *mc)
}

out:
cpu_hotplug_driver_unlock();
mutex_unlock(&x86_cpu_microcode_mutex);

return ret;
}
Expand Down

0 comments on commit eeb5575

Please sign in to comment.