xen: cpu: change 'cpu_hotplug_[begin|done]' to inline function
PATCH RESEND 1/1 xen: cpu: change 'cpu_hotplug_[begin|done]' to inline function
Signed-off-by Baodong Chen <[email protected]>
--- xen/common/cpu.c | 10 ---------- xen/include/xen/cpu.h | 10 ++++++++-- 2 files changed, 8 insertions(+), 12 deletions(-)
xen/common/cpu.c +0 -10
@@ -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)
xen/include/xen/cpu.h +8 -2
@@ -10,8 +10,14 @@ 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);
Signature · 7 lines
2.7.4 _______________________________________________ Xen-devel mailing list [email protected] https://lists.xenproject.org/mailman/listinfo/xen-devel
Quoted 2 lines
Quoted 1 line
Quoted 1 line · On 03.06.19 at 03:57, <[email protected]> wrote:
Signed-off-by Baodong Chen <[email protected]>
Acked-by Jan Beulich <[email protected]>
_______________________________________________
Xen-devel mailing list
[email protected]
https://lists.xenproject.org/mailman/listinfo/xen-devel