Re: [PATCH] mostly_read data section

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Christoph Lameter <[email protected]> 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 [email protected]
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Please read the FAQ at  http://www.tux.org/lkml/

[Index of Archives]     [Kernel Newbies]     [Netfilter]     [Bugtraq]     [Photo]     [Stuff]     [Gimp]     [Yosemite News]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Video 4 Linux]     [Linux for the blind]     [Linux Resources]
  Powered by Linux