From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from web63903.mail.re1.yahoo.com (web63903.mail.re1.yahoo.com [69.147.97.118]) by ozlabs.org (Postfix) with SMTP id 50F9BDDF41 for ; Sun, 29 Apr 2007 07:46:05 +1000 (EST) Date: Sat, 28 Apr 2007 14:46:04 -0700 (PDT) From: melinda develey Subject: Using /dev/rtc causes message "system delaying clock ticks?" To: linuxppc-embedded@ozlabs.org MIME-Version: 1.0 Content-Type: multipart/alternative; boundary="0-944088738-1177796764=:5915" Message-ID: <652572.5915.qm@web63903.mail.re1.yahoo.com> List-Id: Linux on Embedded PowerPC Developers Mail List List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , --0-944088738-1177796764=:5915 Content-Type: text/plain; charset=iso-8859-1 Content-Transfer-Encoding: 8bit I'm using an MPC885 with the linux kernel rtc emulator driver. Because I need to wake a process every second, exactly synchronized with the rtc, I'm using the following code snippet: ____________________________________________ /* Turn on update interrupts (one per second) */ retval = ioctl(fd, RTC_UIE_ON, 0); if (retval == -1) { perror("ioctl"); exit(errno); } while (1) { /* This read will block */ retval = read(fd, &data, sizeof(unsigned long)); if (retval == -1) { perror("read"); exit(errno); } /* Do something exactly synchronized with RTC */ /* ...... */ } _________________________________________ >>From time to time I receive the message on the subject. What's happening? Bye, Melinda. --------------------------------- Ahhh...imagining that irresistible "new car" smell? Check outnew cars at Yahoo! Autos. --0-944088738-1177796764=:5915 Content-Type: text/html; charset=iso-8859-1 Content-Transfer-Encoding: 8bit I'm using an MPC885 with the linux kernel rtc emulator driver. Because I need to wake a process every second, exactly synchronized with the rtc, I'm using the following code snippet:

____________________________________________
/* Turn on update interrupts (one per second) */
retval = ioctl(fd, RTC_UIE_ON, 0);
if (retval == -1) {
        perror("ioctl");
        exit(errno);
}

while (1)
{
        /* This read will block */
        retval = read(fd, &data, sizeof(unsigned long));
        if (retval == -1) {
                perror("read");
                exit(errno);
        }
       /* Do something exactly synchronized with RTC */
       /* ...... */
}

_________________________________________


From time to time I receive the message on the subject. What's happening?


Bye,
Melinda.


Ahhh...imagining that irresistible "new car" smell?
Check out new cars at Yahoo! Autos. --0-944088738-1177796764=:5915--