[PATCH v2 5/7] riscv: Consolidate fences into AMOs for available_harts_lock

Bin Meng bmeng.cn at gmail.com
Tue Sep 15 08:36:24 CEST 2020


On Mon, Sep 14, 2020 at 10:23 PM Sean Anderson <seanga2 at gmail.com> wrote:
>
> We can reduce the number of instructions needed to use available_harts_lock
> by using the aq and rl suffixes for AMOs.
>
> Signed-off-by: Sean Anderson <seanga2 at gmail.com>
> ---
>
> Changes in v2:
> - Remove fences after amoswaps
> - Reword commit message
>
>  arch/riscv/cpu/start.S | 9 +++------
>  1 file changed, 3 insertions(+), 6 deletions(-)
>

Reviewed-by: Bin Meng <bin.meng at windriver.com>


More information about the U-Boot mailing list