Skip to content

Commit 5395e09

Browse files
marcospspmladek
authored andcommitted
printk: Rename console_start to console_resume
The intent of console_start was to resume a previously suspended console, so rename it accordingly. Signed-off-by: Marcos Paulo de Souza <mpdesouza@suse.com> Reviewed-by: Petr Mladek <pmladek@suse.com> Reviewed-by: John Ogness <john.ogness@linutronix.de> Link: https://lore.kernel.org/r/20250226-printk-renaming-v1-4-0b878577f2e6@suse.com [pmladek@suse.com: Fixed typo in the commit message. Updated also new drm_log.c.] Signed-off-by: Petr Mladek <pmladek@suse.com>
1 parent 242fafe commit 5395e09

File tree

4 files changed

+5
-5
lines changed

4 files changed

+5
-5
lines changed

drivers/gpu/drm/clients/drm_log.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -332,7 +332,7 @@ static int drm_log_client_resume(struct drm_client_dev *client, bool _console_lo
332332
{
333333
struct drm_log *dlog = client_to_drm_log(client);
334334

335-
console_start(&dlog->con);
335+
console_resume(&dlog->con);
336336

337337
return 0;
338338
}

drivers/tty/serial/serial_core.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2500,7 +2500,7 @@ int uart_resume_port(struct uart_driver *drv, struct uart_port *uport)
25002500
uart_port_unlock_irq(uport);
25012501
}
25022502
if (console_suspend_enabled)
2503-
console_start(uport->cons);
2503+
console_resume(uport->cons);
25042504
}
25052505

25062506
if (tty_port_suspended(port)) {

include/linux/console.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -634,7 +634,7 @@ extern void console_unblank(void);
634634
extern void console_flush_on_panic(enum con_flush_mode mode);
635635
extern struct tty_driver *console_device(int *);
636636
extern void console_suspend(struct console *);
637-
extern void console_start(struct console *);
637+
extern void console_resume(struct console *);
638638
extern int is_console_locked(void);
639639
extern int braille_register_console(struct console *, int index,
640640
char *console_options, char *braille_options);

kernel/printk/printk.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3517,7 +3517,7 @@ void console_suspend(struct console *console)
35173517
}
35183518
EXPORT_SYMBOL(console_suspend);
35193519

3520-
void console_start(struct console *console)
3520+
void console_resume(struct console *console)
35213521
{
35223522
struct console_flush_type ft;
35233523
bool is_nbcon;
@@ -3542,7 +3542,7 @@ void console_start(struct console *console)
35423542

35433543
__pr_flush(console, 1000, true);
35443544
}
3545-
EXPORT_SYMBOL(console_start);
3545+
EXPORT_SYMBOL(console_resume);
35463546

35473547
#ifdef CONFIG_PRINTK
35483548
static int unregister_console_locked(struct console *console);

0 commit comments

Comments
 (0)