diff options
author | Keir Fraser <keir.fraser@citrix.com> | 2010-05-14 15:22:48 +0100 |
---|---|---|
committer | Keir Fraser <keir.fraser@citrix.com> | 2010-05-14 15:22:48 +0100 |
commit | 2e4146ddc277d2ddd861646b8b1ba83182eb84bb (patch) | |
tree | b89c9a44b6681359974a281096dc16f29dc6d304 /xen/common/notifier.c | |
parent | 2a814aeaaf1e2fe258ab72fc60bb86b7ca4cb102 (diff) | |
download | xen-2e4146ddc277d2ddd861646b8b1ba83182eb84bb.tar.gz xen-2e4146ddc277d2ddd861646b8b1ba83182eb84bb.tar.bz2 xen-2e4146ddc277d2ddd861646b8b1ba83182eb84bb.zip |
x86: Implement cpu hotplug notifiers. Use them.
Signed-off-by: Keir Fraser <keir.fraser@citrix.com>
Diffstat (limited to 'xen/common/notifier.c')
-rw-r--r-- | xen/common/notifier.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/xen/common/notifier.c b/xen/common/notifier.c index 320bca0b58..fe1c507a7a 100644 --- a/xen/common/notifier.c +++ b/xen/common/notifier.c @@ -65,6 +65,9 @@ static int notifier_call_chain( int ret = NOTIFY_DONE; struct notifier_block *nb, *next_nb; + if ( nr_calls ) + *nr_calls = 0; + nb = rcu_dereference(*nl); while ( nb && nr_to_call ) |