oprofile/x86: notify cpus only when daemon is running
authorRobert Richter <robert.richter@amd.com>
Mon, 3 May 2010 13:00:25 +0000 (15:00 +0200)
committerRobert Richter <robert.richter@amd.com>
Thu, 6 May 2010 11:15:39 +0000 (13:15 +0200)
This patch moves the cpu notifier registration from nmi_init() to
nmi_setup(). The corresponding unregistration function is now in
nmi_shutdown(). Thus, the hotplug code is only active, if the oprofile
daemon is running.

Cc: Andi Kleen <andi@firstfloor.org>
Signed-off-by: Robert Richter <robert.richter@amd.com>

No differences found