platform.c (a9fb94a99bb515d8720ba8440ce3aba84aec80f8) | platform.c (8880fa32c557600f5f624084152668ed3c2ea51e) |
---|---|
1/* 2 * Persistent Storage - platform driver interface parts. 3 * 4 * Copyright (C) 2007-2008 Google, Inc. 5 * Copyright (C) 2010 Intel Corporation <tony.luck@intel.com> 6 * 7 * This program is free software; you can redistribute it and/or modify 8 * it under the terms of the GNU General Public License version 2 as --- 594 unchanged lines hidden (view full) --- 603 sema_init(&psinfo->buf_lock, 1); 604 spin_unlock(&pstore_lock); 605 606 if (owner && !try_module_get(owner)) { 607 psinfo = NULL; 608 return -EINVAL; 609 } 610 | 1/* 2 * Persistent Storage - platform driver interface parts. 3 * 4 * Copyright (C) 2007-2008 Google, Inc. 5 * Copyright (C) 2010 Intel Corporation <tony.luck@intel.com> 6 * 7 * This program is free software; you can redistribute it and/or modify 8 * it under the terms of the GNU General Public License version 2 as --- 594 unchanged lines hidden (view full) --- 603 sema_init(&psinfo->buf_lock, 1); 604 spin_unlock(&pstore_lock); 605 606 if (owner && !try_module_get(owner)) { 607 psinfo = NULL; 608 return -EINVAL; 609 } 610 |
611 allocate_buf_for_compression(); | 611 if (psi->flags & PSTORE_FLAGS_DMESG) 612 allocate_buf_for_compression(); |
612 613 if (pstore_is_mounted()) 614 pstore_get_records(0); 615 616 if (psi->flags & PSTORE_FLAGS_DMESG) 617 pstore_register_kmsg(); 618 if (psi->flags & PSTORE_FLAGS_CONSOLE) 619 pstore_register_console(); --- 237 unchanged lines hidden --- | 613 614 if (pstore_is_mounted()) 615 pstore_get_records(0); 616 617 if (psi->flags & PSTORE_FLAGS_DMESG) 618 pstore_register_kmsg(); 619 if (psi->flags & PSTORE_FLAGS_CONSOLE) 620 pstore_register_console(); --- 237 unchanged lines hidden --- |