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
192192 CPU_SMT_DISABLED,
193193 CPU_SMT_FORCE_DISABLED,
194194 CPU_SMT_NOT_SUPPORTED,
195+ CPU_SMT_NOT_IMPLEMENTED,
195196 };
196197
197198 #if defined(CONFIG_SMP) && defined(CONFIG_HOTPLUG_SMT)
@@ -199,7 +200,7 @@ extern enum cpuhp_smt_control cpu_smt_control; · 1 unmodified line
199200 extern void cpu_smt_disable(bool force);
200201 extern void cpu_smt_check_topology(void);
201202 #else
202−# define cpu_smt_control (CPU_SMT_ENABLED)
203+# define cpu_smt_control (CPU_SMT_NOT_IMPLEMENTED)
203204 static inline void cpu_smt_disable(bool force) { }
204205 static inline void cpu_smt_check_topology(void) { }
205206 #endif
include/linux/smpboot.h+1−1
@@ -29,7 +29,7 @@ struct smpboot_thread_data; · 28 unmodified lines
2929 * @thread_comm: The base name of the thread
3030 */
3131 struct smp_hotplug_thread {
32− struct task_struct __percpu **store;
32+ struct task_struct * __percpu *store;
3333 struct list_head list;
3434 int (*thread_should_run)(unsigned int cpu);
3535 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