Re: [RFC][PATCH] timers fixes/improvements

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

 



* Andrew Morton <[email protected]> wrote:

> Oleg Nesterov <[email protected]> wrote:
> >
> > +void fastcall init_timer(struct timer_list *timer)
> >  +{
> >  +	timer->entry.next = NULL;
> >  +	timer->_base = &per_cpu(tvec_bases,
> >  +			__smp_processor_id()).t_base;
> >  +	timer->magic = TIMER_MAGIC;
> >  +}
> 
> __smp_processor_id() is not implemented on all architectures.  I'll switch
> this to _smp_processor_id().
> 
> The smp_processor_id() stuff is all rather a twisty maze (looks at Ingo).

_smp_processor_id() is fine in this case - we pick a CPU at init_timer() 
time, but we dont need to be non-preemptible when we do so.

	Ingo
-
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