int cpu, ret;
mutex_lock(&bL_switcher_activation_lock);
- cpu_hotplug_driver_lock();
+ lock_device_hotplug();
if (bL_switcher_active) {
- cpu_hotplug_driver_unlock();
+ unlock_device_hotplug();
mutex_unlock(&bL_switcher_activation_lock);
return 0;
}
bL_activation_notify(BL_NOTIFY_POST_DISABLE);
out:
- cpu_hotplug_driver_unlock();
+ unlock_device_hotplug();
mutex_unlock(&bL_switcher_activation_lock);
return ret;
}
struct task_struct *task;
mutex_lock(&bL_switcher_activation_lock);
- cpu_hotplug_driver_lock();
+ lock_device_hotplug();
if (!bL_switcher_active)
goto out;
bL_activation_notify(BL_NOTIFY_POST_DISABLE);
out:
- cpu_hotplug_driver_unlock();
+ unlock_device_hotplug();
mutex_unlock(&bL_switcher_activation_lock);
}