synchronization primitives #57

Merged
sb10q merged 1 commits from pca006132/zynq-rs:sync into master 2020-08-04 13:57:58 +08:00
https://git.m-labs.hk/M-Labs/artiq-zynq/issues/81 https://git.m-labs.hk/M-Labs/artiq-zynq/issues/80

We'll probably want to use asm::sev in artiq-zynq to trigger the ACP kernel initiator.
The function (and, for consistency, asm::wfe) should stay implemented even without the powersaving feature, it simply should not be used here.

We'll probably want to use ``asm::sev`` in ``artiq-zynq`` to trigger the ACP kernel initiator. The function (and, for consistency, ``asm::wfe``) should stay implemented even without the powersaving feature, it simply should not be used here.

We'll probably want to use asm::sev in artiq-zynq to trigger the ACP kernel initiator.
The function (and, for consistency, asm::wfe) should stay implemented even without the powersaving feature, it simply should not be used here.

What about adding spin_lock_yield and notify_spin_lock functions, which would be implemented as wfe and sev when power_saving feature is enabled, and nop when disabled?

> We'll probably want to use ``asm::sev`` in ``artiq-zynq`` to trigger the ACP kernel initiator. > The function (and, for consistency, ``asm::wfe``) should stay implemented even without the powersaving feature, it simply should not be used here. What about adding `spin_lock_yield` and `notify_spin_lock` functions, which would be implemented as `wfe` and `sev` when `power_saving` feature is enabled, and nop when disabled?

Sounds good.

Sounds good.
sb10q closed this pull request 2020-08-04 13:57:58 +08:00
Sign in to join this conversation.
No reviewers
No Label
No Milestone
No Assignees
2 Participants
Notifications
Due Date
The due date is invalid or out of range. Please use the format 'yyyy-mm-dd'.

No due date set.

Dependencies

No dependencies set.

Reference: M-Labs/zynq-rs#57
There is no content yet.