Subject: Remove unnecessary lock in pm_qos_requirement Signed-off-by: John Kacur Index: linux-2.6/kernel/pm_qos_params.c =================================================================== --- linux-2.6.orig/kernel/pm_qos_params.c +++ linux-2.6/kernel/pm_qos_params.c @@ -193,14 +193,7 @@ static int find_pm_qos_object_by_minor(i */ int pm_qos_requirement(int pm_qos_class) { - int ret_val; - unsigned long flags; - - spin_lock_irqsave(&pm_qos_lock, flags); - ret_val = pm_qos_array[pm_qos_class]->target_value; - spin_unlock_irqrestore(&pm_qos_lock, flags); - - return ret_val; + return pm_qos_array[pm_qos_class]->target_value; } EXPORT_SYMBOL_GPL(pm_qos_requirement);