cpumask: modifiy oprofile initialization

Delta patch to f7df8ed164 for
tip/cpus4096.

Moved initialization to sync_start()/sync_stop(). No changes needed in
buffer_sync.h and oprof.c anymore.

Signed-off-by: Robert Richter <robert.richter@amd.com>
Signed-off-by: Ingo Molnar <mingo@elte.hu>
This commit is contained in:
Robert Richter
2009-01-22 14:14:14 +01:00
committed by Ingo Molnar
parent 5766b842b2
commit 4c50d9ea9c
3 changed files with 7 additions and 26 deletions

View File

@ -183,10 +183,6 @@ static int __init oprofile_init(void)
{
int err;
err = buffer_sync_init();
if (err)
return err;
err = oprofile_arch_init(&oprofile_ops);
if (err < 0 || timer) {
@ -195,10 +191,8 @@ static int __init oprofile_init(void)
}
err = oprofilefs_register();
if (err) {
if (err)
oprofile_arch_exit();
buffer_sync_cleanup();
}
return err;
}
@ -208,7 +202,6 @@ static void __exit oprofile_exit(void)
{
oprofilefs_unregister();
oprofile_arch_exit();
buffer_sync_cleanup();
}