Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
perf_cnt: cast timer value to uint32_t type
In order to get proper perf counters peaks values we should cast arch timer value to uint32_t. Arch timers API allows user to get uint64_t value. In fact arch timer consits two parts. 32 bits (MSB) software part and 32 bits (LSB) hardware timer. The 32 bits (MSB) software part is incremented only during hardware timer rollover when timer interrupts are enabled. If interrupts are not enabled (perf_cnt case), incrementation will never appear. Signed-off-by: Bartosz Kokoszko <bartoszx.kokoszko@linux.intel.com>
- Loading branch information