[RFC PATCH] delete unnecessary BUG_ON !policy->cur

From: Luming Yu
Date: Tue Sep 22 2009 - 03:17:17 EST


Hi there,

When testing upstream Git tree, there is a BUG_ON hit on a IA64 system
with RHEL 5 user space installed.
Please review the patch below, If make sense, please apply.

Ps. The patch is enclosed in attachment. The inlined one
is c&p of it for reading.


Thanks,
Luming

Signed-off-by: Yu Luming <luming.yu@xxxxxxxxx>

cpufreq_userspace.c | 1 -
1 file changed, 1 deletion(-)

diff --git a/drivers/cpufreq/cpufreq_userspace.c
b/drivers/cpufreq/cpufreq_userspace.c
index 66d2d1d..63bd232 100644
--- a/drivers/cpufreq/cpufreq_userspace.c
+++ b/drivers/cpufreq/cpufreq_userspace.c
@@ -119,7 +119,6 @@ static int cpufreq_governor_userspace(st
case CPUFREQ_GOV_START:
if (!cpu_online(cpu))
return -EINVAL;
- BUG_ON(!policy->cur);
mutex_lock(&userspace_mutex);

if (cpus_using_userspace_governor == 0) {
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/