Skip to content

Commit

Permalink
cpuidle: Rename X86 specific idle poll state[0] from C0 to POLL
Browse files Browse the repository at this point in the history
C0 means and is well know as "not idle".
All documentation out there uses this term as "running"/"not idle"
state. Also Linux userspace tools (e.g. cpufreq-aperf and turbostat)
show C0 residency which there is correct, but means something totally
else than cpuidle "POLL" state.

Signed-off-by: Thomas Renninger <trenn@suse.de>
Signed-off-by: Len Brown <len.brown@intel.com>
  • Loading branch information
Thomas Renninger authored and Len Brown committed Jan 12, 2011
1 parent d189604 commit 720f1c3
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion drivers/cpuidle/cpuidle.c
Original file line number Diff line number Diff line change
Expand Up @@ -181,7 +181,7 @@ static void poll_idle_init(struct cpuidle_device *dev)

cpuidle_set_statedata(state, NULL);

snprintf(state->name, CPUIDLE_NAME_LEN, "C0");
snprintf(state->name, CPUIDLE_NAME_LEN, "POLL");
snprintf(state->desc, CPUIDLE_DESC_LEN, "CPUIDLE CORE POLL IDLE");
state->exit_latency = 0;
state->target_residency = 0;
Expand Down

0 comments on commit 720f1c3

Please sign in to comment.