From: melinda develey <melinda.develey70@yahoo.com>
To: linuxppc-embedded@ozlabs.org
Subject: Using /dev/rtc causes message "system delaying clock ticks?"
Date: Sat, 28 Apr 2007 14:46:04 -0700 (PDT) [thread overview]
Message-ID: <652572.5915.qm@web63903.mail.re1.yahoo.com> (raw)
[-- Attachment #1: Type: text/plain, Size: 930 bytes --]
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.
[-- Attachment #2: Type: text/html, Size: 1595 bytes --]
reply other threads:[~2007-04-28 21:46 UTC|newest]
Thread overview: [no followups] expand[flat|nested] mbox.gz Atom feed
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=652572.5915.qm@web63903.mail.re1.yahoo.com \
--to=melinda.develey70@yahoo.com \
--cc=linuxppc-embedded@ozlabs.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox