summaryrefslogtreecommitdiff
path: root/kern/init.c
diff options
context:
space:
mode:
authorRichard Braun <rbraun@sceen.net>2018-01-08 01:01:06 +0100
committerRichard Braun <rbraun@sceen.net>2018-01-08 01:01:06 +0100
commit63145c357d4fd3d5094308a9a352c2587d366895 (patch)
tree941aefbf46c9ff849679b065e7333ae1bbf4cc44 /kern/init.c
parentb56d4a2bf6de3aa96f0b37a4eb04d41d8b1ca2c4 (diff)
kern/Kconfig: new INIT_DEBUG option
Diffstat (limited to 'kern/init.c')
-rw-r--r--kern/init.c8
1 files changed, 3 insertions, 5 deletions
diff --git a/kern/init.c b/kern/init.c
index da106acd..22db2957 100644
--- a/kern/init.c
+++ b/kern/init.c
@@ -35,8 +35,6 @@
#include <kern/macros.h>
#include <machine/cpu.h>
-#define INIT_DEBUG 1
-
extern struct init_op _init_ops;
extern struct init_op _init_ops_end;
@@ -201,7 +199,7 @@ init_op_run(struct init_op *op)
init_op_set_complete(op);
}
-#if INIT_DEBUG
+#ifdef CONFIG_INIT_DEBUG
#define INIT_DEBUG_LOG_BUFFER_SIZE 8192
@@ -278,12 +276,12 @@ init_debug_scan_not_pending(void)
}
}
-#else /* INIT_DEBUG */
+#else /* CONFIG_INIT_DEBUG */
#define init_debug_append_root(roots)
#define init_debug_append_pending(op)
#define init_debug_append_complete(op)
#define init_debug_scan_not_pending()
-#endif /* INIT_DEBUG */
+#endif /* CONFIG_INIT_DEBUG */
static void __init
init_add_pending_op(struct init_ops_list *pending_ops, struct init_op *op)