traps.c (4388c9b3a6ee7d6afc36c8a0bb5579b1606229b5) | traps.c (6fcd6baa90aeec9dcbe30786e15c125bf50503b2) |
---|---|
1/* 2 * Copyright (C) 1995-1996 Gary Thomas (gdt@linuxppc.org) 3 * Copyright 2007-2010 Freescale Semiconductor, Inc. 4 * 5 * This program is free software; you can redistribute it and/or 6 * modify it under the terms of the GNU General Public License 7 * as published by the Free Software Foundation; either version 8 * 2 of the License, or (at your option) any later version. --- 100 unchanged lines hidden (view full) --- 109 backlight_update_status(pmac_backlight); 110 } 111 mutex_unlock(&pmac_backlight_mutex); 112} 113#else 114static inline void pmac_backlight_unblank(void) { } 115#endif 116 | 1/* 2 * Copyright (C) 1995-1996 Gary Thomas (gdt@linuxppc.org) 3 * Copyright 2007-2010 Freescale Semiconductor, Inc. 4 * 5 * This program is free software; you can redistribute it and/or 6 * modify it under the terms of the GNU General Public License 7 * as published by the Free Software Foundation; either version 8 * 2 of the License, or (at your option) any later version. --- 100 unchanged lines hidden (view full) --- 109 backlight_update_status(pmac_backlight); 110 } 111 mutex_unlock(&pmac_backlight_mutex); 112} 113#else 114static inline void pmac_backlight_unblank(void) { } 115#endif 116 |
117/* 118 * If oops/die is expected to crash the machine, return true here. 119 * 120 * This should not be expected to be 100% accurate, there may be 121 * notifiers registered or other unexpected conditions that may bring 122 * down the kernel. Or if the current process in the kernel is holding 123 * locks or has other critical state, the kernel may become effectively 124 * unusable anyway. 125 */ 126bool die_will_crash(void) 127{ 128 if (should_fadump_crash()) 129 return true; 130 if (kexec_should_crash(current)) 131 return true; 132 if (in_interrupt() || panic_on_oops || 133 !current->pid || is_global_init(current)) 134 return true; 135 136 return false; 137} 138 |
|
117static arch_spinlock_t die_lock = __ARCH_SPIN_LOCK_UNLOCKED; 118static int die_owner = -1; 119static unsigned int die_nest_count; 120static int die_counter; 121 122static unsigned long oops_begin(struct pt_regs *regs) 123{ 124 int cpu; --- 1816 unchanged lines hidden --- | 139static arch_spinlock_t die_lock = __ARCH_SPIN_LOCK_UNLOCKED; 140static int die_owner = -1; 141static unsigned int die_nest_count; 142static int die_counter; 143 144static unsigned long oops_begin(struct pt_regs *regs) 145{ 146 int cpu; --- 1816 unchanged lines hidden --- |