Re: (*(unsigned long *)&jiffies)++;

From: Petko Manolov (petkan@spct.net)
Date: Thu Jan 06 2000 - 11:25:37 EST


Davide Libenzi wrote:
>
> On Thu, 06 Jan 2000, Tigran Aivazian wrote:
> > > void do_timer(struct pt_regs * regs)
> > > {
> > > - /* (*(unsigned long *)&jiffies)++; */
> > > - jiffies++;
> > > - lost_ticks++;
> > > + __asm__ __volatile__("incl jiffies");
> > > + __asm__ __volatile__("incl lost_ticks");
> > > mark_bh(TIMER_BH);
> > > if (!user_mode(regs))
> > > - lost_ticks_system++;
> > > + __asm__ __volatile__("incl lost_ticks_system");
> > > if (tq_timer)
> > > mark_bh(TQUEUE_BH);
> > > }
>
> timer.c isn't in the arch branch of sources, or the "incl ??" asm instruction
> exist in all the supported architectures ?

No, this was only a (wrong)suggestion.
 
Petkan

-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.rutgers.edu
Please read the FAQ at http://www.tux.org/lkml/



This archive was generated by hypermail 2b29 : Fri Jan 07 2000 - 21:00:06 EST