Loading drivers/soc/qcom/subsystem_restart.c +13 −1 Original line number Diff line number Diff line /* Copyright (c) 2011-2015, The Linux Foundation. All rights reserved. /* Copyright (c) 2011-2016, The Linux Foundation. All rights reserved. * * This program is free software; you can redistribute it and/or modify * it under the terms of the GNU General Public License version 2 and Loading Loading @@ -890,6 +890,18 @@ static void subsystem_restart_wq_func(struct work_struct *work) track = &dev->track; } /* * If a system reboot/shutdown is under way, ignore subsystem errors. * However, print a message so that we know that a subsystem behaved * unexpectedly here. */ if (system_state == SYSTEM_RESTART || system_state == SYSTEM_POWER_OFF) { WARN(1, "SSR aborted: %s, system reboot/shutdown is under way\n", desc->name); return; } mutex_lock(&track->lock); do_epoch_check(dev); Loading Loading
drivers/soc/qcom/subsystem_restart.c +13 −1 Original line number Diff line number Diff line /* Copyright (c) 2011-2015, The Linux Foundation. All rights reserved. /* Copyright (c) 2011-2016, The Linux Foundation. All rights reserved. * * This program is free software; you can redistribute it and/or modify * it under the terms of the GNU General Public License version 2 and Loading Loading @@ -890,6 +890,18 @@ static void subsystem_restart_wq_func(struct work_struct *work) track = &dev->track; } /* * If a system reboot/shutdown is under way, ignore subsystem errors. * However, print a message so that we know that a subsystem behaved * unexpectedly here. */ if (system_state == SYSTEM_RESTART || system_state == SYSTEM_POWER_OFF) { WARN(1, "SSR aborted: %s, system reboot/shutdown is under way\n", desc->name); return; } mutex_lock(&track->lock); do_epoch_check(dev); Loading