1. 16 9月, 2007 8 次提交
    • T
      timekeeping: Prevent time going backwards on resume · 6a669ee8
      Thomas Gleixner 提交于
      Timekeeping resume adjusts xtime by adding the slept time in seconds and
      resets the reference value of the clock source (clock->cycle_last).
      clock->cycle last is used to calculate the delta between the last xtime
      update and the readout of the clock source in __get_nsec_offset(). xtime
      plus the offset is the current time. The resume code ignores the delta
      which had already elapsed between the last xtime update and the actual
      time of suspend. If the suspend time is short, then we can see time
      going backwards on resume.
      
      Suspend:
      offs_s = clock->read() - clock->cycle_last;
      now = xtime + offs_s;
      timekeeping_suspend_time = read_rtc();
      
      Resume:
      sleep_time = read_rtc() - timekeeping_suspend_time;
      xtime.tv_sec += sleep_time;
      clock->cycle_last = clock->read();
      offs_r = clock->read() - clock->cycle_last;
      now = xtime + offs_r;
      
      if sleep_time_seconds == 0 and offs_r < offs_s, then time goes
      backwards.
      
      Fix this by storing the offset from the last xtime update and add it to
      xtime during resume, when we reset clock->cycle_last:
      
      sleep_time = read_rtc() - timekeeping_suspend_time;
      xtime.tv_sec += sleep_time;
      xtime += offs_s;	/* Fixup xtime offset at suspend time */
      clock->cycle_last = clock->read();
      offs_r = clock->read() - clock->cycle_last;
      now = xtime + offs_r;
      
      Thanks to Marcelo for tracking this down on the OLPC and providing the
      necessary details to analyze the root cause.
      Signed-off-by: NThomas Gleixner <tglx@linutronix.de>
      Cc: John Stultz <johnstul@us.ibm.com>
      Cc: Tosatti <marcelo@kvack.org>
      6a669ee8
    • T
      timekeeping: access rtc outside of xtime lock · 3be90950
      Thomas Gleixner 提交于
      Lockdep complains about the access of rtc in timekeeping_suspend
      inside the interrupt disabled region of the write locked xtime lock.
      Move the access outside.
      Signed-off-by: NThomas Gleixner <tglx@linutronix.de>
      Cc: John Stultz <johnstul@us.ibm.com>
      3be90950
    • L
      Merge branch 'upstream-linus' of master.kernel.org:/pub/scm/linux/kernel/git/jgarzik/netdev-2.6 · d0174640
      Linus Torvalds 提交于
      * 'upstream-linus' of master.kernel.org:/pub/scm/linux/kernel/git/jgarzik/netdev-2.6:
        drivers/net/pcmcia/3c589_cs: fix port configuration switcheroo
        sk98lin: resurrect driver
        ucc_geth: fix compilation
        mv643xx_eth: Fix tx_bytes stats calculation
        As struct iw_point is bi-directional payload, we should copy back the content
        [PATCH] bcm43xx: Fix cancellation of work queue crashes
        spidernet: fix interrupt reason recognition
        ehea: fix last_rx update
        ehea: propagate physical port state
        Fix a lock problem in generic phy code
        sky2: restore multicast list on resume and other ops
        atl1: disable broken 64-bit DMA
      d0174640
    • J
      drivers/net/pcmcia/3c589_cs: fix port configuration switcheroo · fadacb1b
      Jeff Garzik 提交于
      10base2 and 10baseT were accidentally switched.
      
      Noticed by Andreas HÃŒbner, forwarded by Alan Cox.
      Signed-off-by: NJeff Garzik <jeff@garzik.org>
      fadacb1b
    • S
      sk98lin: resurrect driver · 5ad887fa
      Stephen Hemminger 提交于
      This reverts commit e1abecc4.
      
      The driver works on some hardware that skge doesn't handle yet.
      Signed-off-by: NStephen Hemminger <shemminger@linux-foundation.org>
      Signed-off-by: NJeff Garzik <jeff@garzik.org>
      5ad887fa
    • A
      ucc_geth: fix compilation · 62270336
      Anton Vorontsov 提交于
      Currently qe_bd_t is used in the macro call -- dma_unmap_single,
      which is a no-op on PPC32, thus error is hidden today. Starting
      with 2.6.24, macro will be replaced by the empty static function,
      and erroneous use of qe_bd_t will trigger compilation error.
      Signed-off-by: NAnton Vorontsov <avorontsov@ru.mvista.com>
      Signed-off-by: NJeff Garzik <jeff@garzik.org>
      62270336
    • D
      mv643xx_eth: Fix tx_bytes stats calculation · e7e381f6
      Dale Farnsworth 提交于
      Reported by Corey Minyard <cminyard@mvista.com>
      Signed-off-by: NJeff Garzik <jeff@garzik.org>
      e7e381f6
    • J
      Merge branch 'fixes-jgarzik' of... · a2ca44c3
      Jeff Garzik 提交于
      Merge branch 'fixes-jgarzik' of git://git.kernel.org/pub/scm/linux/kernel/git/linville/wireless-2.6 into upstream-fixes
      a2ca44c3
  2. 15 9月, 2007 27 次提交
  3. 13 9月, 2007 5 次提交