Changeset 9043e7e0 in mainline for kernel/arch/arm32/include


Ignore:
Timestamp:
2013-01-20T00:27:35Z (13 years ago)
Author:
Jan Vesely <jano.vesely@…>
Branches:
lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
Children:
7a38962
Parents:
9eec7bc
Message:

arm32: Count every 64th cycle.

The coutner is 32bit, at 600Mhz it overflows after 7m instead of 7s.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • kernel/arch/arm32/include/cycle.h

    r9eec7bc r9043e7e0  
    5656           return ((uint64_t)high << 32) | low;
    5757        } else {
    58                 return PMCCNTR_read();
     58                return (uint64_t)PMCCNTR_read() * 64;
    5959        }
    6060#endif
Note: See TracChangeset for help on using the changeset viewer.