From 2f7c68cb55ecb7331f2381deb497c27155f32faf Mon Sep 17 00:00:00 2001
From: hc <hc@nodka.com>
Date: Wed, 03 Jan 2024 09:43:39 +0000
Subject: [PATCH] update kernel to 5.10.198
---
kernel/arch/mips/oprofile/op_model_mipsxx.c | 17 ++++++++++++++++-
1 files changed, 16 insertions(+), 1 deletions(-)
diff --git a/kernel/arch/mips/oprofile/op_model_mipsxx.c b/kernel/arch/mips/oprofile/op_model_mipsxx.c
index 7c04b17..55d7b7f 100644
--- a/kernel/arch/mips/oprofile/op_model_mipsxx.c
+++ b/kernel/arch/mips/oprofile/op_model_mipsxx.c
@@ -172,12 +172,15 @@
case 4:
w_c0_perfctrl3(0);
w_c0_perfcntr3(reg.counter[3]);
+ fallthrough;
case 3:
w_c0_perfctrl2(0);
w_c0_perfcntr2(reg.counter[2]);
+ fallthrough;
case 2:
w_c0_perfctrl1(0);
w_c0_perfcntr1(reg.counter[1]);
+ fallthrough;
case 1:
w_c0_perfctrl0(0);
w_c0_perfcntr0(reg.counter[0]);
@@ -195,10 +198,13 @@
switch (counters) {
case 4:
w_c0_perfctrl3(WHAT | reg.control[3]);
+ fallthrough;
case 3:
w_c0_perfctrl2(WHAT | reg.control[2]);
+ fallthrough;
case 2:
w_c0_perfctrl1(WHAT | reg.control[1]);
+ fallthrough;
case 1:
w_c0_perfctrl0(WHAT | reg.control[0]);
}
@@ -215,10 +221,13 @@
switch (counters) {
case 4:
w_c0_perfctrl3(0);
+ fallthrough;
case 3:
w_c0_perfctrl2(0);
+ fallthrough;
case 2:
w_c0_perfctrl1(0);
+ fallthrough;
case 1:
w_c0_perfctrl0(0);
}
@@ -246,8 +255,11 @@
handled = IRQ_HANDLED; \
}
HANDLE_COUNTER(3)
+ fallthrough;
HANDLE_COUNTER(2)
+ fallthrough;
HANDLE_COUNTER(1)
+ fallthrough;
HANDLE_COUNTER(0)
}
@@ -297,12 +309,15 @@
case 4:
w_c0_perfctrl3(0);
w_c0_perfcntr3(0);
+ fallthrough;
case 3:
w_c0_perfctrl2(0);
w_c0_perfcntr2(0);
+ fallthrough;
case 2:
w_c0_perfctrl1(0);
w_c0_perfcntr1(0);
+ fallthrough;
case 1:
w_c0_perfctrl0(0);
w_c0_perfcntr0(0);
@@ -407,7 +422,7 @@
op_model_mipsxx_ops.cpu_type = "mips/sb1";
break;
- case CPU_LOONGSON1:
+ case CPU_LOONGSON32:
op_model_mipsxx_ops.cpu_type = "mips/loongson1";
break;
--
Gitblit v1.6.2