platform.c (609e28bb139e53621521130f0d4aea27a725d465) platform.c (b7753fc7f6f5626e51ee78156fd801fb52163af0)
1// SPDX-License-Identifier: GPL-2.0-only
2/*
3 * Persistent Storage - platform driver interface parts.
4 *
5 * Copyright (C) 2007-2008 Google, Inc.
6 * Copyright (C) 2010 Intel Corporation <tony.luck@intel.com>
7 */
8

--- 502 unchanged lines hidden (view full) ---

511 record.buf = (char *)s;
512 record.size = c;
513 psinfo->write(&record);
514}
515
516static struct console pstore_console = {
517 .name = "pstore",
518 .write = pstore_console_write,
1// SPDX-License-Identifier: GPL-2.0-only
2/*
3 * Persistent Storage - platform driver interface parts.
4 *
5 * Copyright (C) 2007-2008 Google, Inc.
6 * Copyright (C) 2010 Intel Corporation <tony.luck@intel.com>
7 */
8

--- 502 unchanged lines hidden (view full) ---

511 record.buf = (char *)s;
512 record.size = c;
513 psinfo->write(&record);
514}
515
516static struct console pstore_console = {
517 .name = "pstore",
518 .write = pstore_console_write,
519 .flags = CON_PRINTBUFFER | CON_ENABLED | CON_ANYTIME,
520 .index = -1,
521};
522
523static void pstore_register_console(void)
524{
519 .index = -1,
520};
521
522static void pstore_register_console(void)
523{
524 /*
525 * Always initialize flags here since prior unregister_console()
526 * calls may have changed settings (specifically CON_ENABLED).
527 */
528 pstore_console.flags = CON_PRINTBUFFER | CON_ENABLED | CON_ANYTIME;
525 register_console(&pstore_console);
526}
527
528static void pstore_unregister_console(void)
529{
530 unregister_console(&pstore_console);
531}
532#else

--- 324 unchanged lines hidden ---
529 register_console(&pstore_console);
530}
531
532static void pstore_unregister_console(void)
533{
534 unregister_console(&pstore_console);
535}
536#else

--- 324 unchanged lines hidden ---