tools turbostat: harden against cpu online/offline
authorLen Brown <len.brown@intel.com>
Fri, 30 Mar 2012 02:19:58 +0000 (22:19 -0400)
committerLen Brown <len.brown@intel.com>
Fri, 30 Mar 2012 02:27:19 +0000 (22:27 -0400)
commit15aaa34654831e98dd76f7738b6c7f5d05a66430
treed4c4449fdba32e04f791bdc92fbd4042abb18d17
parent88c3281f7ba449992f7a33bd2452a8c6fa5503cb
tools turbostat: harden against cpu online/offline

Sometimes users have turbostat running in interval mode
when they take processors offline/online.

Previously, turbostat would survive, but not gracefully.

Tighten up the error checking so turbostat notices
changesn sooner, and print just 1 line on change:

turbostat: re-initialized with num_cpus %d

Signed-off-by: Len Brown <len.brown@intel.com>
tools/power/x86/turbostat/turbostat.c