Skip to content
  • Max Filippov's avatar
    xtensa: SMP: fix secondary CPU initialization · 32a7726c
    Max Filippov authored
    
    
    - add missing memory barriers to the secondary CPU synchronization spin
      loops; add comment to the matching memory barrier in the boot_secondary
      and __cpu_die functions;
    - use READ_ONCE/WRITE_ONCE to access cpu_start_id/cpu_start_ccount
      instead of reading/writing them directly;
    - re-initialize cpu_running every time before starting secondary CPU to
      flush possible previous CPU startup results.
    
    Signed-off-by: default avatarMax Filippov <jcmvbkbc@gmail.com>
    32a7726c