lkml.org 
[lkml]   [2009]   [Sep]   [22]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
Date
SubjectRe: [RFC PATCH] delete unnecessary BUG_ON !policy->cur
From
Patch attached!

On Tue, Sep 22, 2009 at 3:17 PM, Luming Yu <luming.yu@gmail.com> wrote:
> 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@intel.com>
>
>  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) {
>
[unhandled content-type:application/octet-stream]
\
 
 \ /
  Last update: 2009-09-22 09:21    [W:0.293 / U:0.464 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site