• Heiko Carstens's avatar
    s390/irq,idle: simplify idle check · 6472a2dc
    Heiko Carstens authored
    Use the per-cpu CIF_ENABLED_WAIT flag to decide if an interrupt
    occurred while a cpu was idle, instead of checking two conditions
    within the old psw.
    
    Also move clearing of the CIF_ENABLED_WAIT bit to the early interrupt
    handler, which in turn makes arch_vcpu_is_preempted() also a bit more
    precise, since the flag is now cleared before interrupt handlers have
    been called.
    Reviewed-by: default avatarSven Schnelle <svens@linux.ibm.com>
    Signed-off-by: default avatarHeiko Carstens <hca@linux.ibm.com>
    6472a2dc
irq.c 11.2 KB