mirror of
https://github.com/team-infusion-developers/android_kernel_samsung_msm8976.git
synced 2024-11-01 10:33:27 +00:00
cfc16dd4db
Each subsystem would like to have its own say on what the restart level should be for their particular device. Instead of having a global knob that chooses the subsystem restart level, have a per subsystem restart level so that each subsystem can choose their own restart level. Do this by introducing a per-device sysfs knob that can be written with a string indicating the restart level for that device. "SYSTEM" will reset the entire system when a subsystem crashes, while "RELATED" will restart the subsystem and the group of subsystems related to the subsystem that crashed. Independent used to be possible, but we remove it here because it is equivalent to "RELATED". Also independent restart can cause confusion if the hardware really doesn't support independent restart and the user attempts to choose the independent restart level. Let's not expose broken options to userspace. Some code was using get_restart_level() to determine the global restart level. Luckily most of that code was doing purely debugging things so just remove it and update the last few callers to use a new device call, subsys_get_restart_level(), so they can determine what userspace has chosen for their device. Change-Id: If8f1d57a465cd1c763f1dd6b2cbd6083ff94bb99 Signed-off-by: Stephen Boyd <sboyd@codeaurora.org>
31 lines
1,022 B
Text
31 lines
1,022 B
Text
What: /sys/bus/msm_subsys/devices/.../name
|
|
Date: July 2012
|
|
Contact: Stephen Boyd <sboyd@codeaurora.org>
|
|
Description:
|
|
Shows the name of the subsystem.
|
|
|
|
What: /sys/bus/msm_subsys/devices/.../state
|
|
Date: July 2012
|
|
Contact: Stephen Boyd <sboyd@codeaurora.org>
|
|
Description:
|
|
Shows the state state of a subsystem. Current states
|
|
supported are:
|
|
|
|
OFFLINE - subsystem is offline
|
|
ONLINE - subsystem is online
|
|
|
|
This file supports poll(3) to detect when a subsystem changes
|
|
state. Use POLLPRI to detect state changes.
|
|
|
|
What: /sys/bus/msm_subsys/devices/.../restart_level
|
|
Date: December 2012
|
|
Contact: Stephen Boyd <sboyd@codeaurora.org>
|
|
Description:
|
|
Shows the restart level of a subsystem. The level is taken into
|
|
account when the subsystem is restarted via
|
|
subsystem_restart{_dev}(). Current supported states are:
|
|
|
|
SYSTEM - reset the entire system
|
|
RELATED - reset this subsystem and the other subsystems
|
|
related to this one. Having no other
|
|
subsystems related to this subsystem is valid.
|