]> xenbits.xensource.com Git - people/sstabellini/xen-unstable.git/.git/commit
xen: add helper for calling notifier_call_chain() to common/cpu.c
authorJuergen Gross <jgross@suse.com>
Tue, 2 Apr 2019 05:34:53 +0000 (07:34 +0200)
committerAndrew Cooper <andrew.cooper3@citrix.com>
Thu, 4 Apr 2019 10:10:12 +0000 (11:10 +0100)
commit8d88eacb3b390984e2c483d75d8f40b3ec4be67c
tree766b3cb61533138bfc11896cdd255e651eef0636
parent9b28696502d400832c012c3b3fecfebee6c75648
xen: add helper for calling notifier_call_chain() to common/cpu.c

Add a helper cpu_notifier_call_chain() to call notifier_call_chain()
for a cpu with a specified action, returning an errno value.

This avoids coding the same pattern multiple times.

While at it avoid side effects from using BUG_ON() by not using
cpu_online(cpu) as a parameter.

Signed-off-by: Juergen Gross <jgross@suse.com>
Reviewed-by: Dario Faggioli <dfaggioli@suse.com>
Acked-by: Jan Beulich <jbeulich@suse.com>
xen/common/cpu.c