• Helge Deller's avatar
    parisc: Implement __cpu_die() and __cpu_disable() for CPU hotplugging · 88b3aac6
    Helge Deller authored
    Add relevant code to __cpu_die() and __cpu_disable() to finally enable
    the CPU hotplugging features. Reset the irq count values in smp_callin()
    to zero before bringing up the CPU.
    
    It seems that the firmware may need up to 8 seconds to fully stop a CPU
    in which no other PDC calls are allowed to be made. Use a timeout
    __cpu_die() to accommodate for this.
    
    Use "chcpu -d 1" to bring CPU1 down, and "chcpu -e 1" to bring it up.
    Signed-off-by: default avatarHelge Deller <deller@gmx.de>
    88b3aac6
smp.h 1.18 KB