On Thu, 2019-03-28 at 13:06 +0100, Juergen Gross wrote: > 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 > --- > V2: > - add nofail parameter to cpu_notifier_call_chain() > - avoid side effects from using BUG_ON() macro (Andrew Cooper) > --- > Reviewed-by: Dario Faggioli Regards, Dario -- Dario Faggioli, Ph.D http://about.me/dario.faggioli Virtualization Software Engineer SUSE Labs, SUSE https://www.suse.com/ ------------------------------------------------------------------- <> (Raistlin Majere)