Commit dc559aab authored by Gregory CLEMENT's avatar Gregory CLEMENT Committed by Rafael J. Wysocki

cpuidle: mvebu: Fix the name of the states

The length name of the states 2 was too long to fit in the allocated
string (limited to 16 bytes). This lead to improper string displayed
through sysfs.

This patch shorten the name by removing the reference to Marvell and
to the CPU as both are implicit. For coherency the same change have
been done for the states 1.
Signed-off-by: default avatarGregory CLEMENT <gregory.clement@free-electrons.com>
Signed-off-by: default avatarRafael J. Wysocki <rafael.j.wysocki@intel.com>
parent 7171511e
...@@ -55,7 +55,7 @@ static struct cpuidle_driver armada_370_xp_idle_driver = { ...@@ -55,7 +55,7 @@ static struct cpuidle_driver armada_370_xp_idle_driver = {
.power_usage = 50, .power_usage = 50,
.target_residency = 100, .target_residency = 100,
.flags = CPUIDLE_FLAG_TIME_VALID, .flags = CPUIDLE_FLAG_TIME_VALID,
.name = "MV CPU IDLE", .name = "Idle",
.desc = "CPU power down", .desc = "CPU power down",
}, },
.states[2] = { .states[2] = {
...@@ -65,7 +65,7 @@ static struct cpuidle_driver armada_370_xp_idle_driver = { ...@@ -65,7 +65,7 @@ static struct cpuidle_driver armada_370_xp_idle_driver = {
.target_residency = 1000, .target_residency = 1000,
.flags = CPUIDLE_FLAG_TIME_VALID | .flags = CPUIDLE_FLAG_TIME_VALID |
ARMADA_370_XP_FLAG_DEEP_IDLE, ARMADA_370_XP_FLAG_DEEP_IDLE,
.name = "MV CPU DEEP IDLE", .name = "Deep idle",
.desc = "CPU and L2 Fabric power down", .desc = "CPU and L2 Fabric power down",
}, },
.state_count = ARMADA_370_XP_MAX_STATES, .state_count = ARMADA_370_XP_MAX_STATES,
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment