LoongArch: Fix perf event id calculation
authorHuacai Chen <chenhuacai@loongson.cn>
Thu, 15 Jun 2023 06:35:52 +0000 (14:35 +0800)
committerHuacai Chen <chenhuacai@loongson.cn>
Thu, 15 Jun 2023 06:35:52 +0000 (14:35 +0800)
commit962369120d750cbc9c4dc492f32b4304669ff6aa
treec8527c0d161f8a9cdb7f3a72080d6870d0301ed1
parent346dc929623cef70ff7832a4fa0ffd1b696e312a
LoongArch: Fix perf event id calculation

LoongArch PMCFG has 10bit event id rather than 8 bit, so fix it.

Cc: stable@vger.kernel.org
Signed-off-by: Jun Yi <yijun@loongson.cn>
Signed-off-by: Huacai Chen <chenhuacai@loongson.cn>
arch/loongarch/kernel/perf_event.c