X-Git-Url: https://git.saurik.com/apple/xnu.git/blobdiff_plain/e5568f75972dfc723778653c11cb6b4dc825716a..378393581903b274cb7a4d18e0d978071a6b592d:/iokit/Drivers/platform/drvAppleIntelClock/IntelClock.cpp diff --git a/iokit/Drivers/platform/drvAppleIntelClock/IntelClock.cpp b/iokit/Drivers/platform/drvAppleIntelClock/IntelClock.cpp index 3de76178e..c84abc4ce 100644 --- a/iokit/Drivers/platform/drvAppleIntelClock/IntelClock.cpp +++ b/iokit/Drivers/platform/drvAppleIntelClock/IntelClock.cpp @@ -29,19 +29,16 @@ #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; }