* [PATCH RESEND] xen: cpu: change 'cpu_hotplug_[begin|done]' to inline function
@ 2019-06-03 1:57 ` Baodong Chen
0 siblings, 0 replies; 4+ messages in thread
From: Baodong Chen @ 2019-06-03 1:57 UTC (permalink / raw)
To: xen-devel
Cc: Stefano Stabellini, Wei Liu, Konrad Rzeszutek Wilk,
George Dunlap, Andrew Cooper, Ian Jackson, Tim Deegan,
Julien Grall, Jan Beulich, Baodong Chen
Signed-off-by: Baodong Chen <chenbaodong@mxnavi.com>
---
xen/common/cpu.c | 10 ----------
xen/include/xen/cpu.h | 10 ++++++++--
2 files changed, 8 insertions(+), 12 deletions(-)
diff --git a/xen/common/cpu.c b/xen/common/cpu.c
index f388d89..a526b55 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 4638c50..568d483 100644
--- a/xen/include/xen/cpu.h
+++ b/xen/include/xen/cpu.h
@@ -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);
--
2.7.4
_______________________________________________
Xen-devel mailing list
Xen-devel@lists.xenproject.org
https://lists.xenproject.org/mailman/listinfo/xen-devel
^ permalink raw reply related [flat|nested] 4+ messages in thread
* [Xen-devel] [PATCH RESEND] xen: cpu: change 'cpu_hotplug_[begin|done]' to inline function
@ 2019-06-03 1:57 ` Baodong Chen
0 siblings, 0 replies; 4+ messages in thread
From: Baodong Chen @ 2019-06-03 1:57 UTC (permalink / raw)
To: xen-devel
Cc: Stefano Stabellini, Wei Liu, Konrad Rzeszutek Wilk,
George Dunlap, Andrew Cooper, Ian Jackson, Tim Deegan,
Julien Grall, Jan Beulich, Baodong Chen
Signed-off-by: Baodong Chen <chenbaodong@mxnavi.com>
---
xen/common/cpu.c | 10 ----------
xen/include/xen/cpu.h | 10 ++++++++--
2 files changed, 8 insertions(+), 12 deletions(-)
diff --git a/xen/common/cpu.c b/xen/common/cpu.c
index f388d89..a526b55 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 4638c50..568d483 100644
--- a/xen/include/xen/cpu.h
+++ b/xen/include/xen/cpu.h
@@ -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);
--
2.7.4
_______________________________________________
Xen-devel mailing list
Xen-devel@lists.xenproject.org
https://lists.xenproject.org/mailman/listinfo/xen-devel
^ permalink raw reply related [flat|nested] 4+ messages in thread
* Re: [PATCH RESEND] xen: cpu: change 'cpu_hotplug_[begin|done]' to inline function
@ 2019-06-03 14:54 ` Jan Beulich
0 siblings, 0 replies; 4+ messages in thread
From: Jan Beulich @ 2019-06-03 14:54 UTC (permalink / raw)
To: Baodong Chen
Cc: Stefano Stabellini, WeiLiu, Konrad Rzeszutek Wilk, George Dunlap,
Andrew Cooper, Ian Jackson, Tim Deegan, Julien Grall, xen-devel
>>> On 03.06.19 at 03:57, <chenbaodong@mxnavi.com> wrote:
> Signed-off-by: Baodong Chen <chenbaodong@mxnavi.com>
Acked-by: Jan Beulich <jbeulich@suse.com>
_______________________________________________
Xen-devel mailing list
Xen-devel@lists.xenproject.org
https://lists.xenproject.org/mailman/listinfo/xen-devel
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: [Xen-devel] [PATCH RESEND] xen: cpu: change 'cpu_hotplug_[begin|done]' to inline function
@ 2019-06-03 14:54 ` Jan Beulich
0 siblings, 0 replies; 4+ messages in thread
From: Jan Beulich @ 2019-06-03 14:54 UTC (permalink / raw)
To: Baodong Chen
Cc: Stefano Stabellini, WeiLiu, Konrad Rzeszutek Wilk, George Dunlap,
Andrew Cooper, Ian Jackson, Tim Deegan, Julien Grall, xen-devel
>>> On 03.06.19 at 03:57, <chenbaodong@mxnavi.com> wrote:
> Signed-off-by: Baodong Chen <chenbaodong@mxnavi.com>
Acked-by: Jan Beulich <jbeulich@suse.com>
_______________________________________________
Xen-devel mailing list
Xen-devel@lists.xenproject.org
https://lists.xenproject.org/mailman/listinfo/xen-devel
^ permalink raw reply [flat|nested] 4+ messages in thread
end of thread, other threads:[~2019-06-03 14:55 UTC | newest]
Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2019-06-03 1:57 [PATCH RESEND] xen: cpu: change 'cpu_hotplug_[begin|done]' to inline function Baodong Chen
2019-06-03 1:57 ` [Xen-devel] " Baodong Chen
2019-06-03 14:54 ` Jan Beulich
2019-06-03 14:54 ` [Xen-devel] " Jan Beulich
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.