Commit c77ae0b8 authored by Petr Mladek's avatar Petr Mladek

Merge branch 'rework/kthreads' into for-linus

parents da743a92 78ba392c
...@@ -18,8 +18,6 @@ ...@@ -18,8 +18,6 @@
#include <linux/uaccess.h> #include <linux/uaccess.h>
#include <asm/io.h> #include <asm/io.h>
extern wait_queue_head_t log_wait;
static int kmsg_open(struct inode * inode, struct file * file) static int kmsg_open(struct inode * inode, struct file * file)
{ {
return do_syslog(SYSLOG_ACTION_OPEN, NULL, 0, SYSLOG_FROM_PROC); return do_syslog(SYSLOG_ACTION_OPEN, NULL, 0, SYSLOG_FROM_PROC);
......
...@@ -169,8 +169,6 @@ extern void __printk_safe_exit(void); ...@@ -169,8 +169,6 @@ extern void __printk_safe_exit(void);
#define printk_deferred_enter __printk_safe_enter #define printk_deferred_enter __printk_safe_enter
#define printk_deferred_exit __printk_safe_exit #define printk_deferred_exit __printk_safe_exit
extern bool pr_flush(int timeout_ms, bool reset_on_progress);
/* /*
* Please don't use printk_ratelimit(), because it shares ratelimiting state * Please don't use printk_ratelimit(), because it shares ratelimiting state
* with all other unrelated printk_ratelimit() callsites. Instead use * with all other unrelated printk_ratelimit() callsites. Instead use
...@@ -221,11 +219,6 @@ static inline void printk_deferred_exit(void) ...@@ -221,11 +219,6 @@ static inline void printk_deferred_exit(void)
{ {
} }
static inline bool pr_flush(int timeout_ms, bool reset_on_progress)
{
return true;
}
static inline int printk_ratelimit(void) static inline int printk_ratelimit(void)
{ {
return 0; return 0;
......
...@@ -8,6 +8,8 @@ ...@@ -8,6 +8,8 @@
#ifndef _LINUX_SYSLOG_H #ifndef _LINUX_SYSLOG_H
#define _LINUX_SYSLOG_H #define _LINUX_SYSLOG_H
#include <linux/wait.h>
/* Close the log. Currently a NOP. */ /* Close the log. Currently a NOP. */
#define SYSLOG_ACTION_CLOSE 0 #define SYSLOG_ACTION_CLOSE 0
/* Open the log. Currently a NOP. */ /* Open the log. Currently a NOP. */
...@@ -35,5 +37,6 @@ ...@@ -35,5 +37,6 @@
#define SYSLOG_FROM_PROC 1 #define SYSLOG_FROM_PROC 1
int do_syslog(int type, char __user *buf, int count, int source); int do_syslog(int type, char __user *buf, int count, int source);
extern wait_queue_head_t log_wait;
#endif /* _LINUX_SYSLOG_H */ #endif /* _LINUX_SYSLOG_H */
...@@ -220,9 +220,6 @@ int devkmsg_sysctl_set_loglvl(struct ctl_table *table, int write, ...@@ -220,9 +220,6 @@ int devkmsg_sysctl_set_loglvl(struct ctl_table *table, int write,
} }
#endif /* CONFIG_PRINTK && CONFIG_SYSCTL */ #endif /* CONFIG_PRINTK && CONFIG_SYSCTL */
/* Number of registered extended console drivers. */
static int nr_ext_console_drivers;
/* /*
* Helper macros to handle lockdep when locking/unlocking console_sem. We use * Helper macros to handle lockdep when locking/unlocking console_sem. We use
* macros instead of functions so that _RET_IP_ contains useful information. * macros instead of functions so that _RET_IP_ contains useful information.
...@@ -433,7 +430,7 @@ static struct printk_ringbuffer *prb = &printk_rb_static; ...@@ -433,7 +430,7 @@ static struct printk_ringbuffer *prb = &printk_rb_static;
* per_cpu_areas are initialised. This variable is set to true when * per_cpu_areas are initialised. This variable is set to true when
* it's safe to access per-CPU data. * it's safe to access per-CPU data.
*/ */
static bool __printk_percpu_data_ready __read_mostly; static bool __printk_percpu_data_ready __ro_after_init;
bool printk_percpu_data_ready(void) bool printk_percpu_data_ready(void)
{ {
...@@ -2296,6 +2293,7 @@ asmlinkage __visible int _printk(const char *fmt, ...) ...@@ -2296,6 +2293,7 @@ asmlinkage __visible int _printk(const char *fmt, ...)
} }
EXPORT_SYMBOL(_printk); EXPORT_SYMBOL(_printk);
static bool pr_flush(int timeout_ms, bool reset_on_progress);
static bool __pr_flush(struct console *con, int timeout_ms, bool reset_on_progress); static bool __pr_flush(struct console *con, int timeout_ms, bool reset_on_progress);
#else /* CONFIG_PRINTK */ #else /* CONFIG_PRINTK */
...@@ -2330,6 +2328,7 @@ static void call_console_driver(struct console *con, const char *text, size_t le ...@@ -2330,6 +2328,7 @@ static void call_console_driver(struct console *con, const char *text, size_t le
{ {
} }
static bool suppress_message_printing(int level) { return false; } static bool suppress_message_printing(int level) { return false; }
static bool pr_flush(int timeout_ms, bool reset_on_progress) { return true; }
static bool __pr_flush(struct console *con, int timeout_ms, bool reset_on_progress) { return true; } static bool __pr_flush(struct console *con, int timeout_ms, bool reset_on_progress) { return true; }
#endif /* CONFIG_PRINTK */ #endif /* CONFIG_PRINTK */
...@@ -3186,9 +3185,6 @@ void register_console(struct console *newcon) ...@@ -3186,9 +3185,6 @@ void register_console(struct console *newcon)
console_drivers->next = newcon; console_drivers->next = newcon;
} }
if (newcon->flags & CON_EXTENDED)
nr_ext_console_drivers++;
newcon->dropped = 0; newcon->dropped = 0;
if (newcon->flags & CON_PRINTBUFFER) { if (newcon->flags & CON_PRINTBUFFER) {
/* Get a consistent copy of @syslog_seq. */ /* Get a consistent copy of @syslog_seq. */
...@@ -3213,9 +3209,6 @@ void register_console(struct console *newcon) ...@@ -3213,9 +3209,6 @@ void register_console(struct console *newcon)
if (bootcon_enabled && if (bootcon_enabled &&
((newcon->flags & (CON_CONSDEV | CON_BOOT)) == CON_CONSDEV) && ((newcon->flags & (CON_CONSDEV | CON_BOOT)) == CON_CONSDEV) &&
!keep_bootcon) { !keep_bootcon) {
/* We need to iterate through all boot consoles, to make
* sure we print everything out, before we unregister them.
*/
for_each_console(con) for_each_console(con)
if (con->flags & CON_BOOT) if (con->flags & CON_BOOT)
unregister_console(con); unregister_console(con);
...@@ -3254,9 +3247,6 @@ int unregister_console(struct console *console) ...@@ -3254,9 +3247,6 @@ int unregister_console(struct console *console)
if (res) if (res)
goto out_disable_unlock; goto out_disable_unlock;
if (console->flags & CON_EXTENDED)
nr_ext_console_drivers--;
/* /*
* If this isn't the last console and it has CON_CONSDEV set, we * If this isn't the last console and it has CON_CONSDEV set, we
* need to set it on the next preferred console. * need to set it on the next preferred console.
...@@ -3438,11 +3428,10 @@ static bool __pr_flush(struct console *con, int timeout_ms, bool reset_on_progre ...@@ -3438,11 +3428,10 @@ static bool __pr_flush(struct console *con, int timeout_ms, bool reset_on_progre
* Context: Process context. May sleep while acquiring console lock. * Context: Process context. May sleep while acquiring console lock.
* Return: true if all enabled printers are caught up. * Return: true if all enabled printers are caught up.
*/ */
bool pr_flush(int timeout_ms, bool reset_on_progress) static bool pr_flush(int timeout_ms, bool reset_on_progress)
{ {
return __pr_flush(NULL, timeout_ms, reset_on_progress); return __pr_flush(NULL, timeout_ms, reset_on_progress);
} }
EXPORT_SYMBOL(pr_flush);
/* /*
* Delayed printk version, for scheduler-internal messages: * Delayed printk version, for scheduler-internal messages:
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment