]> git.saurik.com Git - apple/xnu.git/blobdiff - osfmk/kern/clock_oldops.c
xnu-3789.1.32.tar.gz
[apple/xnu.git] / osfmk / kern / clock_oldops.c
index 13a9fa1c6fc52ad45daf38e44f927ea91ba1b765..a3debc0d97f4d299053734b99307811ebd577640 100644 (file)
@@ -39,7 +39,6 @@
 
 #include <mach/mach_types.h>
 
-#include <kern/lock.h>
 #include <kern/host.h>
 #include <kern/spl.h>
 #include <kern/sched_prim.h>
@@ -128,8 +127,6 @@ static kern_return_t        clock_sleep_internal(
                                                        sleep_type_t            sleep_type,
                                                        mach_timespec_t         *sleep_time);
 
-int            rtclock_config(void);
-
 int            rtclock_init(void);
 
 kern_return_t  rtclock_gettime(
@@ -141,7 +138,7 @@ kern_return_t       rtclock_getattr(
        mach_msg_type_number_t  *count);
 
 struct clock_ops sysclk_ops = {
-       rtclock_config,                 rtclock_init,
+       NULL,                   rtclock_init,
        rtclock_gettime,
        rtclock_getattr,
 };
@@ -175,7 +172,7 @@ void
 clock_oldconfig(void)
 {
        clock_t                 clock;
-       register int    i;
+       int     i;
 
        simple_lock_init(&alarm_lock, 0);
        thread_call_setup(&alarm_done_call, (thread_call_func_t)alarm_done, NULL);
@@ -200,7 +197,7 @@ void
 clock_oldinit(void)
 {
        clock_t                 clock;
-       register int    i;
+       int     i;
 
        /*
         * Initialize basic clock structures.
@@ -219,7 +216,7 @@ void
 clock_service_create(void)
 {
        clock_t                 clock;
-       register int    i;
+       int     i;
 
        /*
         * Initialize ipc clock services.
@@ -623,8 +620,8 @@ static void
 alarm_expire(void)
 {
        clock_t                         clock;
-       register alarm_t        alrm1;
-       register alarm_t        alrm2;
+       alarm_t alrm1;
+       alarm_t alrm2;
        mach_timespec_t         clock_time;
        mach_timespec_t         *alarm_time;
        spl_t                           s;
@@ -690,7 +687,7 @@ alarm_expire(void)
 static void
 alarm_done(void)
 {
-       register alarm_t        alrm;
+       alarm_t alrm;
        kern_return_t           code;
        spl_t                           s;
 
@@ -729,7 +726,7 @@ static void
 post_alarm(
        alarm_t                         alarm)
 {
-       register alarm_t        alrm1, alrm2;
+       alarm_t alrm1, alrm2;
        mach_timespec_t         *alarm_time;
        mach_timespec_t         *queue_time;