[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <20080226072035.GB24820@elte.hu>
Date: Tue, 26 Feb 2008 08:20:35 +0100
From: Ingo Molnar <mingo@...e.hu>
To: Yinghai Lu <Yinghai.Lu@....COM>
Cc: Andrew Morton <akpm@...ux-foundation.org>,
Linux Kernel Mailing List <linux-kernel@...r.kernel.org>,
Thomas Gleixner <tglx@...utronix.de>,
"H. Peter Anvin" <hpa@...or.com>
Subject: Re: [PATCH] x86_64: remove wrong setting about CONSTANT_TSC for
intel cpu
* Yinghai Lu <Yinghai.Lu@....COM> wrote:
> also fix error in early_init_intel and reference about x86_capality,
> because it is array already.., prevent possible data corruption...
hm, why should there be data corruption:
> - set_bit(X86_FEATURE_CONSTANT_TSC, &c->x86_capability);
> + set_cpu_cap(c, X86_FEATURE_CONSTANT_TSC);
cpu_cpu_cap() is currently defined as:
#define set_cpu_cap(c, bit) set_bit(bit, (unsigned long *)((c)->x86_capability)
which is the same. set_cpu_cap() is indeed the cleaner form to do this
so your patch is correct as a cleanup.
Ingo
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@...r.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/
Powered by blists - more mailing lists