]> git.saurik.com Git - apple/xnu.git/blobdiff - osfmk/kern/processor_data.c
xnu-1504.7.4.tar.gz
[apple/xnu.git] / osfmk / kern / processor_data.c
index cb3b9a9b48c20fb8716af2f984b6e826492482c0..9f81a2d18080ba4aa6d560449f8423f85896b21f 100644 (file)
@@ -1,5 +1,5 @@
 /*
- * Copyright (c) 2003 Apple Computer, Inc. All rights reserved.
+ * Copyright (c) 2003-2008 Apple Inc. All rights reserved.
  *
  * @APPLE_OSREFERENCE_LICENSE_HEADER_START@
  * 
  */
 /*
  * Machine independent per processor data.
- *
- * HISTORY
- *
- * 16 October 2003 (debo)
- *     Created.
  */
 
 #include <mach/mach_types.h>
 
 #include <kern/processor.h>
+#include <kern/timer.h>
 
 void
 processor_data_init(
@@ -44,8 +40,7 @@ processor_data_init(
 {
        (void)memset(&processor->processor_data, 0, sizeof (processor_data_t));
 
-       queue_init(&PROCESSOR_DATA(processor, timer_call_queue));
-#if    !STAT_TIME
-       timer_init(&PROCESSOR_DATA(processor, offline_timer));
-#endif /* STAT_TIME */
+       timer_init(&PROCESSOR_DATA(processor, idle_state));
+       timer_init(&PROCESSOR_DATA(processor, system_state));
+       timer_init(&PROCESSOR_DATA(processor, user_state));
 }