Loading ...
Sorry, an error occurred while loading the content.

[PATCH] Possible fix for 2.6.x hang problem?

Expand Messages
  • Michael
    pls try if this patch fixes the 2.6.x hang problem. It reverts the timer to 2.4.x behaviour. The Problem is that (*IXP4XX_OSTS - last_jiffy_time) sometimes
    Message 1 of 1 , Sep 26, 2004
    • 0 Attachment
      pls try if this patch fixes the 2.6.x hang problem. It reverts the
      timer to 2.4.x behaviour.

      The Problem is that (*IXP4XX_OSTS - last_jiffy_time) sometimes results
      in a slightly negative value. But the result is an unsigned and
      therefore greater than LATCH -> system hangs for about 60s

      gl

      --- linux-2.6.8.orig/arch/arm/mach-ixp4xx/common.c 2004-09-26
      20:01:12 +0200
      +++ linux-2.6.8/arch/arm/mach-ixp4xx/common.c 2004-09-26
      20:29:36 +0200
      @@ -224,13 +224,7 @@
      /* Clear Pending Interrupt by writing '1' to it */
      *IXP4XX_OSST = IXP4XX_OSST_TIMER_1_PEND;

      - /*
      - * Catch up with the real idea of time
      - */
      - do {
      - timer_tick(regs);
      - last_jiffy_time += LATCH;
      - } while((*IXP4XX_OSTS - last_jiffy_time) > LATCH);
      + timer_tick(regs);

      return IRQ_HANDLED;
      }
    Your message has been successfully submitted and would be delivered to recipients shortly.