[Top] [All Lists]

[PATCH] get time right for SMP machines

Subject: [PATCH] get time right for SMP machines
From: Jun Sun <>
Date: Mon, 9 Jun 2003 19:18:31 -0700
Original-recipient: rfc822;
User-agent: Mutt/1.2.5i
Fixes a couple of things:

1) extend xtime_lock protection to cover do_timer() call (the same
   as in i386 arch).  This enables other CPUs to use jiffie in a sane way.

2) It was not quite right to deliver ll_timer_interrupt() and
   ll_local_timer_interrupt() as two separate interrupts, because
   it may cause bottom half to execute ahead of the second interrupt.

3) for bcm1250, we now use zb bus counter for intra-jiffie offset.
   No more time running backward problem. 

(TODO, I think I probably need to check the chip revision to make
sure zb bus counter is there.  Otherwise we can use null_gettimeoffset())

The patch should apply to 64bit and 2.5 as well.  Comments?


Attachment: 030609.a-smp-gettimeoffset-fix.patch
Description: Text document

<Prev in Thread] Current Thread [Next in Thread>
  • [PATCH] get time right for SMP machines, Jun Sun <=