diff options
author | Christopher Kenna <cjk@cs.unc.edu> | 2012-12-11 11:39:04 -0500 |
---|---|---|
committer | Christopher Kenna <cjk@cs.unc.edu> | 2012-12-11 11:39:04 -0500 |
commit | 31477ed8ca65bb0a3ed3de4cb6df841e6a785471 (patch) | |
tree | c872f767ca48befc06b3ac423ef708e64d4286af | |
parent | e5e0247f927753dc0f22c84773aa48a0beb0d8f9 (diff) |
Config: PREEMPT_STATE_TRACE depends on DEBUG_KERNEL.
This patch makes CONFIG_PREEMPT_STATE_TRACE depend on
CONFIG_DEBUG_KERNEL. Prior to this patch, selecting PREEMPT_STATE_TRACE
resulted in linker errors (see below), because sched_state_name is not
built unless DEBUG_KERNEL is selected.
kernel/built-in.o: In function `schedule':
(.sched.text+0x3d2): undefined reference to `sched_state_name'
-rw-r--r-- | litmus/Kconfig | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/litmus/Kconfig b/litmus/Kconfig index f2dbfb396883..bd6635c8de08 100644 --- a/litmus/Kconfig +++ b/litmus/Kconfig | |||
@@ -265,7 +265,7 @@ config SCHED_DEBUG_TRACE_CALLER | |||
265 | 265 | ||
266 | config PREEMPT_STATE_TRACE | 266 | config PREEMPT_STATE_TRACE |
267 | bool "Trace preemption state machine transitions" | 267 | bool "Trace preemption state machine transitions" |
268 | depends on SCHED_DEBUG_TRACE | 268 | depends on SCHED_DEBUG_TRACE && DEBUG_KERNEL |
269 | default n | 269 | default n |
270 | help | 270 | help |
271 | With this option enabled, each CPU will log when it transitions | 271 | With this option enabled, each CPU will log when it transitions |