diff options
author | Jason Wessel <jason.wessel@windriver.com> | 2011-07-28 12:42:23 -0500 |
---|---|---|
committer | Clark Williams <williams@redhat.com> | 2012-04-13 11:01:51 -0500 |
commit | e1bec773e5e6fa5f5007b6b3350b7d11c09f502f (patch) | |
tree | f0997314f7a756047edcf3a88aae74a33c5e0e99 /include/linux | |
parent | ae619e9b7cbc0d368015b6abd357fdcfa4cb094f (diff) |
kgdb/serial: Short term workaround
On 07/27/2011 04:37 PM, Thomas Gleixner wrote:
> - KGDB (not yet disabled) is reportedly unusable on -rt right now due
> to missing hacks in the console locking which I dropped on purpose.
>
To work around this in the short term you can use this patch, in
addition to the clocksource watchdog patch that Thomas brewed up.
Comments are welcome of course. Ultimately the right solution is to
change separation between the console and the HW to have a polled mode
+ work queue so as not to introduce any kind of latency.
Thanks,
Jason.
Diffstat (limited to 'include/linux')
-rw-r--r-- | include/linux/kdb.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/include/linux/kdb.h b/include/linux/kdb.h index 064725854db8..0d1ebfc9ff43 100644 --- a/include/linux/kdb.h +++ b/include/linux/kdb.h @@ -150,12 +150,14 @@ extern int kdb_register(char *, kdb_func_t, char *, char *, short); extern int kdb_register_repeat(char *, kdb_func_t, char *, char *, short, kdb_repeat_t); extern int kdb_unregister(char *); +#define in_kdb_printk() (kdb_trap_printk) #else /* ! CONFIG_KGDB_KDB */ #define kdb_printf(...) #define kdb_init(x) #define kdb_register(...) #define kdb_register_repeat(...) #define kdb_uregister(x) +#define in_kdb_printk() (0) #endif /* CONFIG_KGDB_KDB */ enum { KDB_NOT_INITIALIZED, |