[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [Xen-changelog] [xen staging] cpu: change 'cpu_hotplug_[begin|done]' to inline function
commit 570a1047f06cab13bea041d22c5885a96d27e90b Author: Baodong Chen <chenbaodong@xxxxxxxxxx> AuthorDate: Mon Jun 3 17:18:58 2019 +0200 Commit: Jan Beulich <jbeulich@xxxxxxxx> CommitDate: Mon Jun 3 17:18:58 2019 +0200 cpu: change 'cpu_hotplug_[begin|done]' to inline function Signed-off-by: Baodong Chen <chenbaodong@xxxxxxxxxx> Acked-by: Jan Beulich <jbeulich@xxxxxxxx> --- xen/common/cpu.c | 10 ---------- xen/include/xen/cpu.h | 11 +++++++++-- 2 files changed, 9 insertions(+), 12 deletions(-) diff --git a/xen/common/cpu.c b/xen/common/cpu.c index f388d8977d..a526b5578b 100644 --- a/xen/common/cpu.c +++ b/xen/common/cpu.c @@ -51,16 +51,6 @@ void put_cpu_maps(void) spin_unlock_recursive(&cpu_add_remove_lock); } -bool_t cpu_hotplug_begin(void) -{ - return get_cpu_maps(); -} - -void cpu_hotplug_done(void) -{ - put_cpu_maps(); -} - static NOTIFIER_HEAD(cpu_chain); void __init register_cpu_notifier(struct notifier_block *nb) diff --git a/xen/include/xen/cpu.h b/xen/include/xen/cpu.h index 4638c509e2..2c87db26f6 100644 --- a/xen/include/xen/cpu.h +++ b/xen/include/xen/cpu.h @@ -10,8 +10,15 @@ bool_t get_cpu_maps(void); void put_cpu_maps(void); /* Safely perform CPU hotplug and update cpu_online_map, etc. */ -bool_t cpu_hotplug_begin(void); -void cpu_hotplug_done(void); +static inline bool cpu_hotplug_begin(void) +{ + return get_cpu_maps(); +} + +static inline void cpu_hotplug_done(void) +{ + put_cpu_maps(); +} /* Receive notification of CPU hotplug events. */ void register_cpu_notifier(struct notifier_block *nb); -- generated by git-patchbot for /home/xen/git/xen.git#staging _______________________________________________ Xen-changelog mailing list Xen-changelog@xxxxxxxxxxxxxxxxxxxx https://lists.xenproject.org/xen-changelog
|
Lists.xenproject.org is hosted with RackSpace, monitoring our |