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:
committed by
Ingo Molnar
parent
5766b842b2
commit
4c50d9ea9c
@ -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();
|
||||
}
|
||||
|
||||
|
||||
|
Reference in New Issue
Block a user