diff options
Diffstat (limited to 'kernel/printk.c')
| -rw-r--r-- | kernel/printk.c | 3 | 
1 files changed, 3 insertions, 0 deletions
| diff --git a/kernel/printk.c b/kernel/printk.c index 1149365e989e..771f5e861bcd 100644 --- a/kernel/printk.c +++ b/kernel/printk.c | |||
| @@ -721,6 +721,7 @@ int __init add_preferred_console(char *name, int idx, char *options) | |||
| 721 | return 0; | 721 | return 0; | 
| 722 | } | 722 | } | 
| 723 | 723 | ||
| 724 | #ifndef CONFIG_DISABLE_CONSOLE_SUSPEND | ||
| 724 | /** | 725 | /** | 
| 725 | * suspend_console - suspend the console subsystem | 726 | * suspend_console - suspend the console subsystem | 
| 726 | * | 727 | * | 
| @@ -728,6 +729,7 @@ int __init add_preferred_console(char *name, int idx, char *options) | |||
| 728 | */ | 729 | */ | 
| 729 | void suspend_console(void) | 730 | void suspend_console(void) | 
| 730 | { | 731 | { | 
| 732 | printk("Suspending console(s)\n"); | ||
| 731 | acquire_console_sem(); | 733 | acquire_console_sem(); | 
| 732 | console_suspended = 1; | 734 | console_suspended = 1; | 
| 733 | } | 735 | } | 
| @@ -737,6 +739,7 @@ void resume_console(void) | |||
| 737 | console_suspended = 0; | 739 | console_suspended = 0; | 
| 738 | release_console_sem(); | 740 | release_console_sem(); | 
| 739 | } | 741 | } | 
| 742 | #endif /* CONFIG_DISABLE_CONSOLE_SUSPEND */ | ||
| 740 | 743 | ||
| 741 | /** | 744 | /** | 
| 742 | * acquire_console_sem - lock the console system for exclusive use. | 745 | * acquire_console_sem - lock the console system for exclusive use. | 
