hc
2023-12-11 6778948f9de86c3cfaf36725a7c87dcff9ba247f
kernel/include/linux/console.h
....@@ -16,7 +16,6 @@
1616
1717 #include <linux/atomic.h>
1818 #include <linux/types.h>
19
-#include <linux/printk.h>
2019
2120 struct vc_data;
2221 struct console_font_op;
....@@ -138,12 +137,10 @@
138137 #define CON_ANYTIME (16) /* Safe to call when cpu is offline */
139138 #define CON_BRL (32) /* Used for a braille device */
140139 #define CON_EXTENDED (64) /* Use the extended output format a la /dev/kmsg */
141
-#define CON_HANDOVER (128) /* Device was previously a boot console. */
142140
143141 struct console {
144142 char name[16];
145143 void (*write)(struct console *, const char *, unsigned);
146
- void (*write_atomic)(struct console *co, const char *s, unsigned int count);
147144 int (*read)(struct console *, char *, unsigned);
148145 struct tty_driver *(*device)(struct console *, int *);
149146 void (*unblank)(void);
....@@ -153,11 +150,6 @@
153150 short flags;
154151 short index;
155152 int cflag;
156
-#ifdef CONFIG_PRINTK
157
- char sync_buf[CONSOLE_LOG_MAX];
158
-#endif
159
- atomic64_t printk_seq;
160
- struct task_struct *thread;
161153 void *data;
162154 struct console *next;
163155 };
....@@ -237,8 +229,5 @@
237229 /* For deferred console takeover */
238230 void dummycon_register_output_notifier(struct notifier_block *nb);
239231 void dummycon_unregister_output_notifier(struct notifier_block *nb);
240
-
241
-extern void console_atomic_lock(unsigned int *flags);
242
-extern void console_atomic_unlock(unsigned int flags);
243232
244233 #endif /* _LINUX_CONSOLE_H */