• Max Filippov's avatar
    xtensa: don't clear cpenable unconditionally on release · be38e4f2
    Max Filippov authored
    Clearing cpenable special register for a task without changing
    coprocessor owner for the coprocessors that were enabled will result in
    coprocessor context flush and immediate reload at the next attempt to
    access this coprocessor if it happens before the context switch.
    Avoid it by only clearing cpenable special register if
    coprocessor_release_all is called for the current task.
    Signed-off-by: default avatarMax Filippov <jcmvbkbc@gmail.com>
    be38e4f2
process.c 10.1 KB