History

Merge branch 'smp-hotplug-for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/tip/tip

Pull CPU hotplug updates from Ingo Molnar: "Two changes in this cycle: - Make the /sys/devices/system/cpu/smt/* files available on all arches, so user space has a consistent way to detect whether SMT is enabled. - Sparse annotation fix" * 'smp-hotplug-for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/tip/tip: smpboot: Place the __percpu annotation correctly cpu/hotplug: Create SMT sysfs interface for all arches

Linus Torvalds committed 7 years ago

Commit 5a2bf1a2 parents e00d413 d4645d34 files · +48 −31Browse files

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

Unified · Split

2 files
  1. include/linux/cpu.h +2 −1
  2. include/linux/smpboot.h +1 −1
include/linux/cpu.h+2−1
@@ -192,6 +192,7 @@ enum cpuhp_smt_control { · 191 unmodified lines
192 CPU_SMT_DISABLED,192 CPU_SMT_DISABLED,
193 CPU_SMT_FORCE_DISABLED,193 CPU_SMT_FORCE_DISABLED,
194 CPU_SMT_NOT_SUPPORTED,194 CPU_SMT_NOT_SUPPORTED,
195 CPU_SMT_NOT_IMPLEMENTED,
195};196};
196 197
197#if defined(CONFIG_SMP) && defined(CONFIG_HOTPLUG_SMT)198#if defined(CONFIG_SMP) && defined(CONFIG_HOTPLUG_SMT)
@@ -199,7 +200,7 @@ extern enum cpuhp_smt_control cpu_smt_control; · 1 unmodified line
199extern void cpu_smt_disable(bool force);200extern void cpu_smt_disable(bool force);
200extern void cpu_smt_check_topology(void);201extern void cpu_smt_check_topology(void);
201#else202#else
202# define cpu_smt_control (CPU_SMT_ENABLED)203# define cpu_smt_control (CPU_SMT_NOT_IMPLEMENTED)
203static inline void cpu_smt_disable(bool force) { }204static inline void cpu_smt_disable(bool force) { }
204static inline void cpu_smt_check_topology(void) { }205static inline void cpu_smt_check_topology(void) { }
205#endif206#endif
include/linux/smpboot.h+1−1
@@ -29,7 +29,7 @@ struct smpboot_thread_data; · 28 unmodified lines
29 * @thread_comm: The base name of the thread29 * @thread_comm: The base name of the thread
30 */30 */
31struct smp_hotplug_thread {31struct smp_hotplug_thread {
32 struct task_struct __percpu **store;32 struct task_struct * __percpu *store;
33 struct list_head list;33 struct list_head list;
34 int (*thread_should_run)(unsigned int cpu);34 int (*thread_should_run)(unsigned int cpu);
35 void (*thread_fn)(unsigned int cpu);35 void (*thread_fn)(unsigned int cpu);

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