diff options
Diffstat (limited to 'include/linux/console.h')
| -rw-r--r-- | include/linux/console.h | 19 |
1 files changed, 14 insertions, 5 deletions
diff --git a/include/linux/console.h b/include/linux/console.h index dfd6b0e97855..ec9bdb3d7bab 100644 --- a/include/linux/console.h +++ b/include/linux/console.h | |||
| @@ -14,6 +14,7 @@ | |||
| 14 | #ifndef _LINUX_CONSOLE_H_ | 14 | #ifndef _LINUX_CONSOLE_H_ |
| 15 | #define _LINUX_CONSOLE_H_ 1 | 15 | #define _LINUX_CONSOLE_H_ 1 |
| 16 | 16 | ||
| 17 | #include <linux/atomic.h> | ||
| 17 | #include <linux/types.h> | 18 | #include <linux/types.h> |
| 18 | 19 | ||
| 19 | struct vc_data; | 20 | struct vc_data; |
| @@ -21,6 +22,7 @@ struct console_font_op; | |||
| 21 | struct console_font; | 22 | struct console_font; |
| 22 | struct module; | 23 | struct module; |
| 23 | struct tty_struct; | 24 | struct tty_struct; |
| 25 | struct notifier_block; | ||
| 24 | 26 | ||
| 25 | /* | 27 | /* |
| 26 | * this is what the terminal answers to a ESC-Z or csi0c query. | 28 | * this is what the terminal answers to a ESC-Z or csi0c query. |
| @@ -200,11 +202,14 @@ void vcs_make_sysfs(int index); | |||
| 200 | void vcs_remove_sysfs(int index); | 202 | void vcs_remove_sysfs(int index); |
| 201 | 203 | ||
| 202 | /* Some debug stub to catch some of the obvious races in the VT code */ | 204 | /* Some debug stub to catch some of the obvious races in the VT code */ |
| 203 | #if 1 | 205 | #define WARN_CONSOLE_UNLOCKED() \ |
| 204 | #define WARN_CONSOLE_UNLOCKED() WARN_ON(!is_console_locked() && !oops_in_progress) | 206 | WARN_ON(!atomic_read(&ignore_console_lock_warning) && \ |
| 205 | #else | 207 | !is_console_locked() && !oops_in_progress) |
| 206 | #define WARN_CONSOLE_UNLOCKED() | 208 | /* |
| 207 | #endif | 209 | * Increment ignore_console_lock_warning if you need to quiet |
| 210 | * WARN_CONSOLE_UNLOCKED() for debugging purposes. | ||
| 211 | */ | ||
| 212 | extern atomic_t ignore_console_lock_warning; | ||
| 208 | 213 | ||
| 209 | /* VESA Blanking Levels */ | 214 | /* VESA Blanking Levels */ |
| 210 | #define VESA_NO_BLANKING 0 | 215 | #define VESA_NO_BLANKING 0 |
| @@ -220,4 +225,8 @@ static inline bool vgacon_text_force(void) { return false; } | |||
| 220 | 225 | ||
| 221 | extern void console_init(void); | 226 | extern void console_init(void); |
| 222 | 227 | ||
| 228 | /* For deferred console takeover */ | ||
| 229 | void dummycon_register_output_notifier(struct notifier_block *nb); | ||
| 230 | void dummycon_unregister_output_notifier(struct notifier_block *nb); | ||
| 231 | |||
| 223 | #endif /* _LINUX_CONSOLE_H */ | 232 | #endif /* _LINUX_CONSOLE_H */ |
