diff options
author | Geert Uytterhoeven <geert+renesas@glider.be> | 2016-02-23 17:49:18 +0100 |
---|---|---|
committer | Rafael J. Wysocki <rafael.j.wysocki@intel.com> | 2016-03-09 00:36:03 +0100 |
commit | 0ba554e45c674181a3e5c42c7a6cccbbc75a0dd7 (patch) | |
tree | be2ed12672d1b2ca7014add8e3ab00b187f08943 /drivers/base/power | |
parent | 6954d43292674aaacc9b1cdbc28b1b2ea0cc6445 (diff) | |
download | op-kernel-dev-0ba554e45c674181a3e5c42c7a6cccbbc75a0dd7.zip op-kernel-dev-0ba554e45c674181a3e5c42c7a6cccbbc75a0dd7.tar.gz |
PM / Domains: Join state name and index in debugfs output
For low-power states, the state index is part of the state, hence join
them with a hyphen in the /sys/kernel/debug/pm_genpd/pm_genpd_summary
output. E.g. "off 0" becomes "off-0".
Signed-off-by: Geert Uytterhoeven <geert+renesas@glider.be>
Acked-by: Ulf Hansson <ulf.hansson@linaro.org>
Tested-by: Kevin Hilman <khilman@baylibre.com>
Signed-off-by: Rafael J. Wysocki <rafael.j.wysocki@intel.com>
Diffstat (limited to 'drivers/base/power')
-rw-r--r-- | drivers/base/power/domain.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/base/power/domain.c b/drivers/base/power/domain.c index 01015d8..9e59543 100644 --- a/drivers/base/power/domain.c +++ b/drivers/base/power/domain.c @@ -1892,7 +1892,7 @@ static int pm_genpd_summary_one(struct seq_file *s, if (WARN_ON(genpd->status >= ARRAY_SIZE(status_lookup))) goto exit; if (genpd->status == GPD_STATE_POWER_OFF) - snprintf(state, sizeof(state), "%s %u", + snprintf(state, sizeof(state), "%s-%u", status_lookup[genpd->status], genpd->state_idx); else snprintf(state, sizeof(state), "%s", |