<excessive quoting trimmed, please don't quote 40K of text
to add a single line reply>
On Tue, Sep 25, 2007 at 12:01:56AM +0200, roel wrote:
> > --- a/arch/i386/kernel/cpu/cpufreq/powernow-k6.c
> > +++ b/arch/i386/kernel/cpu/cpufreq/powernow-k6.c
> > @@ -215,7 +215,7 @@ static struct cpufreq_driver powernow_k6
> > */
> > static int __init powernow_k6_init(void)
> > {
> > - struct cpuinfo_x86 *c = cpu_data;
> > + struct cpuinfo_x86 *c = &cpu_data(0);
> >
> > if ((c->x86_vendor != X86_VENDOR_AMD) || (c->x86 != 5) ||
> > ((c->x86_model != 12) && (c->x86_model != 13)))
>
> while we're at it, we could change this to
>
> if (!(c->x86_vendor == X86_VENDOR_AMD && c->x86 == 5 &&
> (c->x86_model == 12 || c->x86_model == 13)))
For what purpose? There's nothing wrong with the code as it stands,
and inverting the tests means we'd have to move a bunch of
code inside the if arm instead of just returning -ENODEV.
Dave
--
http://www.codemonkey.org.uk
-
| Tarkan Erimer | Re: Dual-Licensing Linux Kernel with GPL V2 and GPL V3 |
| Greg KH | [GIT PATCH] driver core patches against 2.6.24 |
| David Miller | Slow DOWN, please!!! |
| Peter Zijlstra | [PATCH 00/23] per device dirty throttling -v8 |
| Gerrit Renker | [PATCH 27/37] dccp: Integration of dynamic feature activation - part 2 (server side) |
| Jarek Poplawski | [PATCH] pkt_sched: Destroy gen estimators under rtnl_lock(). |
| David Miller | [GIT]: Networking |
| Natalie Protasevich | [BUG] New Kernel Bugs |
git: | |
