[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: How to ensure clock is updated in a device driver



On Lu, 12 mai 14, 16:58:21, Jerry Stuckle wrote:
> Hi, all,
> 
> I'm working on a driver to monitor a device.  One of the things I need is an
> accurate time, and ARM clocks are notoriously subject to drift. Once the
> system is booted, that's not a problem as I can use an ntp server in a cron
> job to correct the time as necessary.
> 
> However, I need the time to be accurate during device driver initialization,
> also.  How can I ensure ntp has run to update the system clock during
> initialization?

This is probably an obvious solution, but I'll post it anyway: you could 
(re)load your driver in an initscript that depends on ntp.

Kind regards,
Andrei
-- 
http://wiki.debian.org/FAQsFromDebianUser
Offtopic discussions among Debian users and developers:
http://lists.alioth.debian.org/mailman/listinfo/d-community-offtopic
http://nuvreauspam.ro/gpg-transition.txt

Attachment: signature.asc
Description: Digital signature


Reply to: