cpumask: convert misc driver functions
Impact: use new cpumask API. Convert misc driver functions to use struct cpumask. To Do: - Convert iucv_buffer_cpumask to cpumask_var_t. Signed-off-by: Rusty Russell <rusty@rustcorp.com.au> Signed-off-by: Mike Travis <travis@sgi.com> Acked-by: Dean Nelson <dcn@sgi.com> Cc: Robert Richter <robert.richter@amd.com> Cc: oprofile-list@lists.sf.net Cc: Jeremy Fitzhardinge <jeremy@xensource.com> Cc: Chris Wright <chrisw@sous-sol.org> Cc: virtualization@lists.osdl.org Cc: xen-devel@lists.xensource.com Cc: Ursula Braun <ursula.braun@de.ibm.com> Cc: linux390@de.ibm.com Cc: linux-s390@vger.kernel.org
This commit is contained in:
committed by
Ingo Molnar
parent
fbd59a8d1f
commit
f7df8ed164
@@ -183,6 +183,10 @@ 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) {
|
||||
@@ -191,8 +195,10 @@ static int __init oprofile_init(void)
|
||||
}
|
||||
|
||||
err = oprofilefs_register();
|
||||
if (err)
|
||||
if (err) {
|
||||
oprofile_arch_exit();
|
||||
buffer_sync_cleanup();
|
||||
}
|
||||
|
||||
return err;
|
||||
}
|
||||
@@ -202,6 +208,7 @@ static void __exit oprofile_exit(void)
|
||||
{
|
||||
oprofilefs_unregister();
|
||||
oprofile_arch_exit();
|
||||
buffer_sync_cleanup();
|
||||
}
|
||||
|
||||
|
||||
|
Reference in New Issue
Block a user