Changeset 222570a in rtems for bsps


Ignore:
Timestamp:
Apr 9, 2019, 6:06:01 AM (7 months ago)
Author:
Sebastian Huber <sebastian.huber@…>
Branches:
master
Children:
3c50c328
Parents:
e0dcf294
git-author:
Sebastian Huber <sebastian.huber@…> (04/09/19 06:06:01)
git-committer:
Sebastian Huber <sebastian.huber@…> (04/09/19 06:06:46)
Message:

bsps/arm: Optimize ARMv7-M CPU counter

Update #3456.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • bsps/arm/include/bsp/clock-armv7m.h

    re0dcf294 r222570a  
    5151  uint32_t counter;
    5252  uint32_t ticks;
    53 
    54   systick = _ARMV7M_Systick;
    55   interval = systick->rvr;
     53  uint32_t csr;
    5654
    5755  rtems_interrupt_disable(level);
     56  systick = _ARMV7M_Systick;
    5857  counter = systick->cvr;
     58  csr = systick->csr;
     59  interval = systick->rvr;
    5960  ticks = tc->ticks;
    6061
    61   if ((systick->csr & ARMV7M_SYSTICK_CSR_COUNTFLAG) != 0) {
     62  if (RTEMS_PREDICT_FALSE((csr & ARMV7M_SYSTICK_CSR_COUNTFLAG) != 0)) {
    6263    counter = systick->cvr;
    6364    ticks += interval;
Note: See TracChangeset for help on using the changeset viewer.