apps >> Resetting system clock with interrupt handler?

by jchludzinski@gmail.com » Fri, 26 Aug 2005 23:45:54 GMT

I have project using a GPS device in what we call a "player unit". The
player unit is a small AMD Geode (x86) based device running Linux. The
GPS is a PCI part connected to INTD (PCI INTx). It submits interrupts
every second which need to be caught and used to reset the system time
with - thereby synchronizing the entire (wireless) network of player
units.

1) How do associate a handler with this interrupt?

2) What is the best system call to reset the the system clock? (I
assume I really don't want to reset the hardware clock?)

---John



apps >> Resetting system clock with interrupt handler?

by jchludzinski@gmail.com » Sat, 27 Aug 2005 00:36:45 GMT


I assume the answer to 1) is request_irq(...) found in
/usr/include/linux/interrupt.h? ---John




apps >> Resetting system clock with interrupt handler?

by Kasper Dupont » Sat, 27 Aug 2005 07:35:32 GMT




I guess the solution is to make a driver that will
allow ntpd to use the device as timing source.

--
Kasper Dupont
Note to self: Don't try to allocate
256000 pages with GFP_KERNEL on x86.


Resetting system clock with interrupt handler?

by John Hasler » Sat, 27 Aug 2005 09:43:15 GMT

Kasper Dupont writes:

Or install an existing driver if one exists for your device or use NMEA if
your device supports it.
--
John Hasler
XXXX@XXXXX.COM
Dancing Horse Hill
Elmwood, WI USA


Similar Threads

1. Trapping system clock reset

Is there any way to have syslog trap calls to reset the system
clock on Linux? I have a problem with a GPS time server that is
causing problems, one of which is the system clock gets set to a
very early date (1980). I want to be able to detect this change
to confirm it's impact on some other systems.

If not via syslog does anyone know of ANY way to trap a system
time reset event and log it?
Any help would be much appreciated.

James Kimble

2. de2104x: interrupts before interrupt handler is registered - Linux

3. [PATCH] USB: fix interrupt disabling for HCDs with shared interrupt handlers

4. [PATCH] USB: fix interrupt disabling for HCDs with shared interrupt handlers - Linux

5. System clock is much faster than hardware clock

Hi all,

The system clock on my updated SuSE 9.3 is running several times faster than
it should on my eMachine. Does anyone know how I can fix it? 

Thanks.

6. Trapping Linux clock reset event

7. forgot to reset the clock again :(

_

8. [SCSI] aic7xxx: reset handler selects a wrong command - Linux