• Mark Rutland's avatar
    arm64: use alternative auto-nop · 6ba3b554
    Mark Rutland authored
    Make use of the new alternative_if and alternative_else_nop_endif and
    get rid of our homebew NOP sleds, making the code simpler to read.
    
    Note that for cpu_do_switch_mm the ret has been moved out of the
    alternative sequence, and in the default case there will be three
    additional NOPs executed.
    Signed-off-by: default avatarMark Rutland <mark.rutland@arm.com>
    Cc: Catalin Marinas <catalin.marinas@arm.com>
    Cc: James Morse <james.morse@arm.com>
    Cc: Will Deacon <will.deacon@arm.com>
    Signed-off-by: default avatarWill Deacon <will.deacon@arm.com>
    6ba3b554
copy_page.S 2.03 KB