• WANG Xuerui's avatar
    LoongArch: Clean up the architectural interrupt definitions · 9e36fa42
    WANG Xuerui authored
    While interrupts are assigned ECodes `64 + interrupt number`, all
    existing use sites of interrupt numbers want the 64 subtracted.
    Re-arrange the definitions so that the actual interrupt number is used
    everywhere, and make EXCCODE_INT_END inclusive as it is more intuitive
    that way.
    
    While at it, according to the asm/loongarch.h definitions, the total
    number of architectural interrupts should be 14, but various other
    places indicate otherwise (13 or 15). Those places have been adjusted
    to 14 as well for consistency.
    Signed-off-by: default avatarWANG Xuerui <git@xen0n.name>
    Signed-off-by: default avatarHuacai Chen <chenhuacai@loongson.cn>
    9e36fa42
perf_event.c 21.1 KB