History

smp/hotplug: Track booted once CPUs in a cpumask

The booted once information which is required to deal with the MCE broadcast issue on X86 correctly is stored in the per cpu hotplug state, which is perfectly fine for the intended purpose. X86 needs that information for supporting NMI broadcasting via shortcuts, but retrieving it from per cpu data is cumbersome. Move it to a cpumask so the information can be checked against the cpu_present_mask quickly. No functional change intended.

Thomas Gleixner committed 7 years ago

Commit e797bda1 parent ad5e4272 files · +9 −4Browse files

Showing the changes to include/linux (1 of 2 files). Show all

Unified · Split

include/linux/cpumask.h+2−0
@@ -115,6 +115,8 @@ extern struct cpumask __cpu_active_mask; · 114 unmodified lines
115#define cpu_active(cpu) ((cpu) == 0)115#define cpu_active(cpu) ((cpu) == 0)
116#endif116#endif
117 117
118extern cpumask_t cpus_booted_once_mask;
119
118static inline void cpu_max_bits_warn(unsigned int cpu, unsigned int bits)120static inline void cpu_max_bits_warn(unsigned int cpu, unsigned int bits)
119{121{
120#ifdef CONFIG_DEBUG_PER_CPU_MAPS122#ifdef CONFIG_DEBUG_PER_CPU_MAPS

Keyboard shortcuts

General

Show keyboard shortcuts
?
Focus the current search
/

Issues and pull requests

Open filters
f

Issues, pull requests and Inbox

Select next item
j↓
Select previous item
k↑
Open selected item
Enter
Dismiss filters or clear selection
Esc

Repository code

Go to file
t