intel_soc_pmu: optimize retry logic and dump more information
authorDong Yang <dong.yang@intel.com>
Sun, 17 Jun 2012 04:12:17 +0000 (12:12 +0800)
committerbuildslave <buildslave@buildbot.tl.intel.com>
Fri, 29 Jun 2012 12:46:03 +0000 (05:46 -0700)
commit058eeec7131967ffabe57ac51a1524eed426f40b
tree36bd5bc8cbc0f516a2eeb162eae202d3418a118d
parent7d3047ce8f8d8e7b34b8fdaf36f1d5ef74ab9318
intel_soc_pmu: optimize retry logic and dump more information

BZ: 42229

the pmu_pci_set_power_state() will try 3 times to wait the pmu2 get ready,
but every time issue a command to pmu2, since pmu2 is busy, this is the
wrong behavior, it should issue the interactive command only for 1 time
and wait the pmu2 to get ready for 3 times. or else it won't trigger panic
and will returned in case pmu2 busy forever.

Optimize retry logic and add longer delay in
_pmu2_wait_not_busy_yield(), use endless loop if PMU is alwasy
busy, dump all CPU call trace.

Change-Id: I4355706f95c87872e961f106ee1059eaee1590e1
Signed-off-by: Dong Yang <dong.yang@intel.com>
Signed-off-by: Illyas Mansoor <illyas.mansoor@intel.com>
Signed-off-by: Yanmin Zhang <yanmin.zhang@intel.com>
Signed-off-by: He, Bo <bo.he@intel.com>
arch/x86/platform/intel-mid/intel_soc_pmu.c
arch/x86/platform/intel-mid/intel_soc_pmu.h