diff options
| author | Len Brown <len.brown@intel.com> | 2004-02-05 12:21:02 -0500 |
|---|---|---|
| committer | Len Brown <len.brown@intel.com> | 2004-02-05 12:21:02 -0500 |
| commit | 151fa98b00778e62ebb74f8dd64a0f0cff9997ac (patch) | |
| tree | b50419187097dcb135c2c1f6bfa4e1429264fc36 /include/linux/console.h | |
| parent | cbd884c9feafad7e29214eeaee9a36e48053d31a (diff) | |
| parent | 12a981f8fd62fb34823626844a5c76d6614055fe (diff) | |
Merge intel.com:/home/lenb/bk/linux-2.6.3
into intel.com:/home/lenb/src/linux-acpi-test-2.6.3
Diffstat (limited to 'include/linux/console.h')
| -rw-r--r-- | include/linux/console.h | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/include/linux/console.h b/include/linux/console.h index 6db0056fb4c9..f6ff116ccfb3 100644 --- a/include/linux/console.h +++ b/include/linux/console.h @@ -102,6 +102,14 @@ extern void acquire_console_sem(void); extern void release_console_sem(void); extern void console_conditional_schedule(void); extern void console_unblank(void); +extern int is_console_locked(void); + +/* Some debug stub to catch some of the obvious races in the VT code */ +#if 1 +#define WARN_CONSOLE_UNLOCKED() WARN_ON(!is_console_locked() && !oops_in_progress) +#else +#define WARN_CONSOLE_UNLOCKED() +#endif /* VESA Blanking Levels */ #define VESA_NO_BLANKING 0 |
