We want the output to be always the same even if the prediction accuracy is not possible because we are working on an old kernel.
Signed-off-by: Daniel Lezcano daniel.lezcano@linaro.org --- idlestat.c | 10 +--------- 1 file changed, 1 insertion(+), 9 deletions(-)
diff --git a/idlestat.c b/idlestat.c index 83655bd..fc7a31a 100644 --- a/idlestat.c +++ b/idlestat.c @@ -72,15 +72,7 @@ static int display_cstates(struct cpuidle_cstates *cstates, char *str) { int i;
- /* If the first C-state does not have target_residency - * chances are pretty high that we dont have it for any node. - */ - if (cstates->cstate[0].target_residency >= 0) - printf("%s@state hits\tover\tunder\t\ttotal(us)\tavg(us)\tmin(us)\tmax(us)\n", - str); - else - printf("%s@state hits\t\ttotal(us)\tavg(us)\tmin(us)\tmax(us)\n", - str); + printf("%s@state hits\tover\tunder\t\ttotal(us)\tavg(us)\tmin(us)\tmax(us)\n", str);
for (i = 0; i < cstates->cstate_max + 1; i++) { struct cpuidle_cstate *c = &cstates->cstate[i];