Re: [PATCH] mostly_read data section

From: Andrew Morton
Date: Tue Jun 28 2005 - 15:07:14 EST


Christoph Lameter <christoph@xxxxxxxxxxx> wrote:
>
> -static unsigned long hpet_usec_quotient; /* convert hpet clks to usec */
> +static unsigned long __read_mostly hpet_usec_quotient; /* convert hpet clks to usec */

__read_mostly

> static unsigned long tsc_hpet_quotient; /* convert tsc to hpet clks */
> static unsigned long hpet_last; /* hpet counter value at last tick*/
> static unsigned long last_tsc_low; /* lsb 32 bits of Time Stamp Counter */
> @@ -193,7 +193,7 @@ static int hpet_resume(void)
> /************************************************************/
>
> /* tsc timer_opts struct */
> -static struct timer_opts timer_hpet = {
> +static struct timer_opts timer_hpet __mostly_read = {

__mostly_read.


I suggest you use __read_mostly throughout.
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/