Re: /dev/rtc on alpha

From: Bob McElrath (bob+linux-kernel_at_mcelrath.org)
Date: 11/09/03

  • Next message: Robert Love: "Re: preemption when running in the kernel"
    Date:	Sun, 9 Nov 2003 09:44:36 -0800
    To: Ivan Kokshaysky <ink@jurassic.park.msu.ru>
    
    
    

    Ivan Kokshaysky [ink@jurassic.park.msu.ru] wrote:
    > On Sat, Nov 08, 2003 at 01:33:57PM -0800, Bob McElrath wrote:
    > > Why is the alpha kernel code grabbing the rtc interrupt? Is it possible
    > > it share its use with a user program? Would reprogramming the interrupt
    > > rate by a user program do violence to some internel kernel timing?
    >
    > On most Alphas RTC is the system timer (running at 1024 Hz).
    > So changing the interrupt rate from user space wouldn't be a good idea.

    Then I propose CONFIG_RTC be set to "n" in the arch/alpha files, and the
    /dev/rtc driver be disabled on alpha. There seems to be confusion on
    this point in the config files. CONFIG_RTC is for the /dev/rtc driver.

    Since the timer can only be set to powers of 2, it should be possible to
    simulate getting the interrupt by calling the rtc.c interrupt handler
    every 2^n interrupts...that way the user could program the timer for any
    interval less than 1024 Hz.

    Cheers,
    Bob McElrath [Univ. of California at Davis, Department of Physics]

    
    

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



  • Next message: Robert Love: "Re: preemption when running in the kernel"

    Relevant Pages

    • Re: /dev/rtc on alpha
      ... > Why is the alpha kernel code grabbing the rtc interrupt? ... Would reprogramming the interrupt ... > rate by a user program do violence to some internel kernel timing? ...
      (Linux-Kernel)
    • Re: sdcc, 8051/8031 in C
      ... (so my interrupt handler handles wrong interrupt). ... Another mistake that I usually had is forgetting not to activated ... So it can switch from user program to monitors program. ...
      (comp.arch.embedded)
    • Re: [PATCH] 3c59x: read current link status from phy
      ... there is only one interrupt that for data transmission (both Tx ... The MII registers are not ... Universitaet Heidelberg, INF 368, D-69120 Heidelberg, GERMANY ... send the line "unsubscribe linux-kernel" in ...
      (Linux-Kernel)
    • Re: is killing zombies possible w/o a reboot?
      ... An interrupt could be received at any time, ... in uninterruptible state because it is uninterruptible ... Processes must never get stuck in D, it's a kernel bug. ... send the line "unsubscribe linux-kernel" in ...
      (Linux-Kernel)
    • Re: 2.6.0-test7-mm1
      ... >> handlers happens to start a thread, ... Problem is, things like bus resets happen in interrupt, and while I can ... send the line "unsubscribe linux-kernel" in ...
      (Linux-Kernel)