History

cpu: Remove try_get_online_cpus()

Now that synchronize_sched_expedited() no longer uses it, there are no users of try_get_online_cpus() in mainline. This commit therefore removes it.

Paul E. McKenney committed 11 years ago

Commit 02ef3c41 parent 807226e2 files · +0 −15Browse files

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

Unified · Split

include/linux/cpu.h+0−2
@@ -228,7 +228,6 @@ extern struct bus_type cpu_subsys; · 227 unmodified lines
228extern void cpu_hotplug_begin(void);228extern void cpu_hotplug_begin(void);
229extern void cpu_hotplug_done(void);229extern void cpu_hotplug_done(void);
230extern void get_online_cpus(void);230extern void get_online_cpus(void);
231extern bool try_get_online_cpus(void);
232extern void put_online_cpus(void);231extern void put_online_cpus(void);
233extern void cpu_hotplug_disable(void);232extern void cpu_hotplug_disable(void);
234extern void cpu_hotplug_enable(void);233extern void cpu_hotplug_enable(void);
@@ -246,7 +245,6 @@ int cpu_down(unsigned int cpu); · 11 unmodified lines
246static inline void cpu_hotplug_begin(void) {}245static inline void cpu_hotplug_begin(void) {}
247static inline void cpu_hotplug_done(void) {}246static inline void cpu_hotplug_done(void) {}
248#define get_online_cpus() do { } while (0)247#define get_online_cpus() do { } while (0)
249#define try_get_online_cpus() true
250#define put_online_cpus() do { } while (0)248#define put_online_cpus() do { } while (0)
251#define cpu_hotplug_disable() do { } while (0)249#define cpu_hotplug_disable() do { } while (0)
252#define cpu_hotplug_enable() do { } while (0)250#define cpu_hotplug_enable() do { } while (0)

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