X-Git-Url: https://git.saurik.com/apple/xnu.git/blobdiff_plain/7e4a7d3939db04e70062ae6c7bf24b8c8b2f5a7c..060df5ea7c632b1ac8cc8aac1fb59758165c2084:/bsd/kern/bsd_init.c?ds=sidebyside diff --git a/bsd/kern/bsd_init.c b/bsd/kern/bsd_init.c index e54d4284f..e2868a40c 100644 --- a/bsd/kern/bsd_init.c +++ b/bsd/kern/bsd_init.c @@ -666,12 +666,6 @@ bsd_init(void) bsd_init_kprintf("calling knote_init\n"); knote_init(); -#if CONFIG_EMBEDDED - /* Initialize kernel memory status notifications */ - bsd_init_kprintf("calling kern_memorystatus_init\n"); - kern_memorystatus_init(); -#endif - /* Initialize for async IO */ bsd_init_kprintf("calling aio_init\n"); aio_init(); @@ -735,6 +729,12 @@ bsd_init(void) kernproc->p_fd->fd_cdir = NULL; kernproc->p_fd->fd_rdir = NULL; +#if CONFIG_EMBEDDED + /* Initialize kernel memory status notifications */ + bsd_init_kprintf("calling kern_memorystatus_init\n"); + kern_memorystatus_init(); +#endif + #ifdef GPROF /* Initialize kernel profiling. */ kmstartup();