mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
* [RFC PATCH] delete unnecessary BUG_ON !policy->cur
@ 2009-09-22  7:17 Luming Yu
  2009-09-22  7:18 ` Luming Yu
  0 siblings, 1 reply; 2+ messages in thread
From: Luming Yu @ 2009-09-22  7:17 UTC (permalink / raw)
  To: LKML

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) {

^ permalink raw reply	[flat|nested] 2+ messages in thread

* Re: [RFC PATCH] delete unnecessary BUG_ON !policy->cur
  2009-09-22  7:17 [RFC PATCH] delete unnecessary BUG_ON !policy->cur Luming Yu
@ 2009-09-22  7:18 ` Luming Yu
  0 siblings, 0 replies; 2+ messages in thread
From: Luming Yu @ 2009-09-22  7:18 UTC (permalink / raw)
  To: LKML

[-- Attachment #1: Type: text/plain, Size: 1129 bytes --]

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) {
>

[-- Attachment #2: 10.patch --]
[-- Type: application/octet-stream, Size: 438 bytes --]

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) {

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2009-09-22  7:18 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2009-09-22  7:17 [RFC PATCH] delete unnecessary BUG_ON !policy->cur Luming Yu
2009-09-22  7:18 ` Luming Yu

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox

all inboxes | Powered by JetHome®