]> git.saurik.com Git - apple/xnu.git/blobdiff - iokit/Drivers/platform/drvAppleIntelClock/IntelClock.cpp
xnu-792.6.56.tar.gz
[apple/xnu.git] / iokit / Drivers / platform / drvAppleIntelClock / IntelClock.cpp
index 413f90e692e9bb977937c9f2d9880bb2ee54d228..9442e8ba3fbbce74450e3d14055e6e407ffd8d00 100644 (file)
@@ -3,8 +3,6 @@
  *
  * @APPLE_LICENSE_HEADER_START@
  * 
- * Copyright (c) 1999-2003 Apple Computer, Inc.  All Rights Reserved.
- * 
  * This file contains Original Code and/or Modifications of Original Code
  * as defined in and that are subject to the Apple Public Source License
  * Version 2.0 (the 'License'). You may not use this file except in
 #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;
 }