Merge "cpuidle: lpm-levels: Fix snprintf string format"
This commit is contained in:
commit
e16f4fa16b
1 changed files with 2 additions and 1 deletions
|
@ -1706,7 +1706,8 @@ static int cluster_cpuidle_register(struct lpm_cluster *cl)
|
||||||
struct cpuidle_state *st = &cl->drv->states[i];
|
struct cpuidle_state *st = &cl->drv->states[i];
|
||||||
struct lpm_cpu_level *cpu_level = &cl->cpu->levels[i];
|
struct lpm_cpu_level *cpu_level = &cl->cpu->levels[i];
|
||||||
snprintf(st->name, CPUIDLE_NAME_LEN, "C%u\n", i);
|
snprintf(st->name, CPUIDLE_NAME_LEN, "C%u\n", i);
|
||||||
snprintf(st->desc, CPUIDLE_DESC_LEN, cpu_level->name);
|
snprintf(st->desc, CPUIDLE_DESC_LEN, "%s",
|
||||||
|
cpu_level->name);
|
||||||
st->flags = 0;
|
st->flags = 0;
|
||||||
st->exit_latency = cpu_level->pwr.latency_us;
|
st->exit_latency = cpu_level->pwr.latency_us;
|
||||||
st->power_usage = cpu_level->pwr.ss_power;
|
st->power_usage = cpu_level->pwr.ss_power;
|
||||||
|
|
Loading…
Add table
Reference in a new issue