diff options
author | Amerigo Wang <amwang@redhat.com> | 2010-03-04 09:23:46 +0100 |
---|---|---|
committer | Dave Jones <davej@redhat.com> | 2010-03-31 18:00:21 +0200 |
commit | 499bca9b6d3243f9278a1f5a22d00e67acdd844d (patch) | |
tree | 860ef8e80c4b68a10f06eb8a2fa19b43e608fade /drivers/cpufreq/cpufreq_conservative.c | |
parent | Linux 2.6.34-rc3 (diff) | |
download | linux-499bca9b6d3243f9278a1f5a22d00e67acdd844d.tar.xz linux-499bca9b6d3243f9278a1f5a22d00e67acdd844d.zip |
[CPUFREQ] fix a lockdep warning
There is no need to do sysfs_remove_link() or kobject_put() etc.
when policy_rwsem_write is held, move them after releasing the lock.
This fixes the lockdep warning:
halt/4071 is trying to acquire lock:
(s_active){++++.+}, at: [<c0000000001ef868>] .sysfs_addrm_finish+0x58/0xc0
but task is already holding lock:
(&per_cpu(cpu_policy_rwsem, cpu)){+.+.+.}, at: [<c0000000004cd6ac>] .lock_policy_rwsem_write+0x84/0xf4
Reported-by: Benjamin Herrenschmidt <benh@kernel.crashing.org>
Signed-off-by: WANG Cong <amwang@redhat.com>
Cc: Johannes Berg <johannes@sipsolutions.net>
Cc: Venkatesh Pallipadi <venkatesh.pallipadi@intel.com>
Signed-off-by: Dave Jones <davej@redhat.com>
Diffstat (limited to 'drivers/cpufreq/cpufreq_conservative.c')
0 files changed, 0 insertions, 0 deletions