]> git.saurik.com Git - apple/xnu.git/blobdiff - osfmk/i386/cpu.c
xnu-7195.60.75.tar.gz
[apple/xnu.git] / osfmk / i386 / cpu.c
index bad6b10166e0e4aed4e79136f1a83a29ef6e8e71..2b5ef15842e68fd4f6b603642c09977f9841b6e2 100644 (file)
@@ -31,7 +31,6 @@
  *     cpu specific routines
  */
 
-#include <kern/kalloc.h>
 #include <kern/misc_protos.h>
 #include <kern/lock_group.h>
 #include <kern/machine.h>
@@ -196,33 +195,6 @@ cpu_machine_init(
 #endif
 }
 
-processor_t
-cpu_processor_alloc(boolean_t is_boot_cpu)
-{
-       int             ret;
-       processor_t     proc;
-
-       if (is_boot_cpu) {
-               return &processor_master;
-       }
-
-       ret = kmem_alloc(kernel_map, (vm_offset_t *) &proc, sizeof(*proc), VM_KERN_MEMORY_OSFMK);
-       if (ret != KERN_SUCCESS) {
-               return NULL;
-       }
-
-       bzero((void *) proc, sizeof(*proc));
-       return proc;
-}
-
-void
-cpu_processor_free(processor_t proc)
-{
-       if (proc != NULL && proc != &processor_master) {
-               kfree(proc, sizeof(*proc));
-       }
-}
-
 processor_t
 current_processor(void)
 {