diff options
| author | 2025-11-09 16:02:01 +0800 | |
|---|---|---|
| committer | 2025-11-10 08:37:06 +0800 | |
| commit | 4c8a7c9827726f6e987b7a04af8ef58f1c7fe8d3 (patch) | |
| tree | 8d5a30b8fcc4f225c1a187f15d841ad51fa06c01 /net/unix/garbage.c | |
| parent | LoongArch: Remove __GFP_HIGHMEM masking in pud_alloc_one() (diff) | |
| download | wireguard-linux-4c8a7c9827726f6e987b7a04af8ef58f1c7fe8d3.tar.xz wireguard-linux-4c8a7c9827726f6e987b7a04af8ef58f1c7fe8d3.zip | |
LoongArch: Refine the init_hw_perf_events() function
(1) Use the existing CPUCFG6_PMNUM_SHIFT macro definition instead of
the magic value 4 to get the PMU number.
(2) Detect the value of PMU bits via CPUCFG instruction according to
the ISA manual instead of hard-coded as 64, because the value may be
different for various micro-architectures.
Link: https://loongson.github.io/LoongArch-Documentation/LoongArch-Vol1-EN.html#_cpucfg
Signed-off-by: Tiezhu Yang <yangtiezhu@loongson.cn>
Signed-off-by: Huacai Chen <chenhuacai@loongson.cn>
Diffstat (limited to 'net/unix/garbage.c')
0 files changed, 0 insertions, 0 deletions
