From: Ingo Molnar <mingo@elte.hu>
To: Rusty Russell <rusty@rustcorp.com.au>
Cc: Ingo Molnar <mingo@redhat.com>,
linux-kernel@vger.kernel.org, Mike Travis <travis@sgi.com>,
Yinghai Lu <yinghai@kernel.org>
Subject: Re: [PATCH 2/3] cpumask: fix powernow-k8: partial revert of 2fdf66b491ac706657946442789ec644cc317e1a
Date: Mon, 9 Feb 2009 11:17:23 +0100 [thread overview]
Message-ID: <20090209101723.GH20467@elte.hu> (raw)
In-Reply-To: <200902071809.39175.rusty@rustcorp.com.au>
* Rusty Russell <rusty@rustcorp.com.au> wrote:
> Impact: fix powernow-k8 when acpi=off (or other error).
>
> There was a spurious change introduced into powernow-k8 in this patch:
> the cause if that we try to "restore" the cpus_allowed we never saved.
>
> See lkml "[PATCH] x86/powernow: fix cpus_allowed brokage when
> acpi=off" from Yinghai for the bug report.
>
> Cc: Mike Travis <travis@sgi.com>
> Cc: Yinghai Lu <yinghai@kernel.org>
> Signed-off-by: Rusty Russell <rusty@rustcorp.com.au>
> ---
> arch/x86/kernel/cpu/cpufreq/powernow-k8.c | 12 +++++++-----
> 1 file changed, 7 insertions(+), 5 deletions(-)
>
> diff --git a/arch/x86/kernel/cpu/cpufreq/powernow-k8.c b/arch/x86/kernel/cpu/cpufreq/powernow-k8.c
> --- a/arch/x86/kernel/cpu/cpufreq/powernow-k8.c
> +++ b/arch/x86/kernel/cpu/cpufreq/powernow-k8.c
> @@ -1142,8 +1142,7 @@ static int __cpuinit powernowk8_cpu_init
> data->cpu = pol->cpu;
> data->currpstate = HW_PSTATE_INVALID;
>
> - rc = powernow_k8_cpu_init_acpi(data);
> - if (rc) {
> + if (powernow_k8_cpu_init_acpi(data)) {
> /*
> * Use the PSB BIOS structure. This is only availabe on
> * an UP version, and is deprecated by AMD.
> @@ -1161,17 +1160,20 @@ static int __cpuinit powernowk8_cpu_init
> "ACPI maintainers and complain to your BIOS "
> "vendor.\n");
> #endif
> - goto err_out;
> + kfree(data);
> + return -ENODEV;
> }
> if (pol->cpu != 0) {
> printk(KERN_ERR FW_BUG PFX "No ACPI _PSS objects for "
> "CPU other than CPU0. Complain to your BIOS "
> "vendor.\n");
> - goto err_out;
> + kfree(data);
> + return -ENODEV;
> }
> rc = find_psb_table(data);
> if (rc) {
> - goto err_out;
> + kfree(data);
> + return -ENODEV;
> }
hm, why the 3-way duplication of this pattern:
> + kfree(data);
> + return -ENODEV;
because it's a straight revert?
Ingo
next prev parent reply other threads:[~2009-02-09 10:18 UTC|newest]
Thread overview: 6+ messages / expand[flat|nested] mbox.gz Atom feed top
2009-02-07 7:39 [PATCH 2/3] cpumask: fix powernow-k8: partial revert of 2fdf66b491ac706657946442789ec644cc317e1a Rusty Russell
2009-02-07 7:45 ` Yinghai Lu
2009-02-07 7:50 ` Rusty Russell
2009-02-07 7:59 ` Yinghai Lu
2009-02-09 10:17 ` Ingo Molnar [this message]
2009-02-09 10:31 ` Rusty Russell
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20090209101723.GH20467@elte.hu \
--to=mingo@elte.hu \
--cc=linux-kernel@vger.kernel.org \
--cc=mingo@redhat.com \
--cc=rusty@rustcorp.com.au \
--cc=travis@sgi.com \
--cc=yinghai@kernel.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox