]> git.saurik.com Git - apple/xnu.git/blobdiff - iokit/Drivers/platform/drvAppleIntelClock/IntelClock.cpp
xnu-792.6.61.tar.gz
[apple/xnu.git] / iokit / Drivers / platform / drvAppleIntelClock / IntelClock.cpp
index 3de76178eff0e16adb342b5cda51a096ac5f3749..c84abc4cee17ee654e4135dddca3cdb73346a50e 100644 (file)
 #define super IOService
 OSDefineMetaClassAndStructors(AppleIntelClock, IOService);
 
-extern "C" {
-extern void    hardclock(void);
-};
-
 bool
 AppleIntelClock::start(IOService *provider)
 {
        if (!super::start(provider))
                return false;
 
-       provider->registerInterrupt(kIRQ_Clock, 0, (IOInterruptAction) hardclock);
-       provider->enableInterrupt(kIRQ_Clock);
-
+       /*
+        * The clock is already provided by the kernel, so all we need 
+        * here is publish its availability for any IOKit client to use.
+        */
        publishResource("IORTC", this);
        return true;
 }