[riot-notifications] [RIOT-OS/RIOT] cpu/arm7_common: Update to inlineable IRQ API (#14088)

benpicco notifications at github.com
Fri May 15 11:38:28 CEST 2020


### Contribution description

Update IRQ API to the inline-able version
Cleaned up the implementation:

 - We do not manipulate the [CPSR](https://www.keil.com/pack/doc/CMSIS/Core_A/html/group__CMSIS__CPSR.html) register outside of `irq_%`, so we can just restore it's previous value and don't have to fiddle with the IRQ MASK bit.

### Testing procedure

I ran `tests/bench_thread_yield_pingpong`.

#### before

- text: 19780
- result: 87167

#### after

- text: 19720
- result: 101266

### Issues/PRs references

Follow up of #13999

You can view, comment on, or merge this pull request online at:

  https://github.com/RIOT-OS/RIOT/pull/14088

-- Commit Summary --

  * cpu/arm7_common: add inlined header only def for irq_%
  * cpu/arm7_common: simplify irq_restore()

-- File Changes --

    R cpu/arm7_common/include/irq_arch.h (38)
    M cpu/lpc2387/include/cpu_conf.h (5)

-- Patch Links --

https://github.com/RIOT-OS/RIOT/pull/14088.patch
https://github.com/RIOT-OS/RIOT/pull/14088.diff

-- 
You are receiving this because you are subscribed to this thread.
Reply to this email directly or view it on GitHub:
https://github.com/RIOT-OS/RIOT/pull/14088
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.riot-os.org/pipermail/notifications/attachments/20200515/1e60cebd/attachment.htm>


More information about the notifications mailing list