commit | bc6f11b730a8a4dfc46b547bdfbf6dd872c99dcd | [log] [tgz] |
---|---|---|
author | Wayne Ren <wei.ren@synopsys.com> | Thu May 21 10:30:18 2020 +0800 |
committer | Carles CufĂ <carles.cufi@nordicsemi.no> | Thu May 21 12:37:41 2020 +0200 |
tree | f2f932b8785e9f3edea05717f5ef6550c752c8c0 | |
parent | ac5dc1dd3462944896c7bfc6a555313be6b23f02 [diff] |
drivers: arcv2_timer0: minor fix and optimization for SMP case * still need to clear IP bit in timer irq handler * last_time should be aligned to ticks, old code will miss some cycles which are about (curret_time - last_time) % CYC_PER_TICK * in timeout set, shorten the delay needed when tick is 0, this will improve the response of timer irq Signed-off-by: Wayne Ren <wei.ren@synopsys.com>