forked from ~ljy/RK356X_SDK_RELEASE

hc
2024-09-20 a36159eec6ca17402b0e146b86efaf76568dc353
kernel/arch/mips/oprofile/op_model_mipsxx.c
....@@ -172,12 +172,15 @@
172172 case 4:
173173 w_c0_perfctrl3(0);
174174 w_c0_perfcntr3(reg.counter[3]);
175
+ fallthrough;
175176 case 3:
176177 w_c0_perfctrl2(0);
177178 w_c0_perfcntr2(reg.counter[2]);
179
+ fallthrough;
178180 case 2:
179181 w_c0_perfctrl1(0);
180182 w_c0_perfcntr1(reg.counter[1]);
183
+ fallthrough;
181184 case 1:
182185 w_c0_perfctrl0(0);
183186 w_c0_perfcntr0(reg.counter[0]);
....@@ -195,10 +198,13 @@
195198 switch (counters) {
196199 case 4:
197200 w_c0_perfctrl3(WHAT | reg.control[3]);
201
+ fallthrough;
198202 case 3:
199203 w_c0_perfctrl2(WHAT | reg.control[2]);
204
+ fallthrough;
200205 case 2:
201206 w_c0_perfctrl1(WHAT | reg.control[1]);
207
+ fallthrough;
202208 case 1:
203209 w_c0_perfctrl0(WHAT | reg.control[0]);
204210 }
....@@ -215,10 +221,13 @@
215221 switch (counters) {
216222 case 4:
217223 w_c0_perfctrl3(0);
224
+ fallthrough;
218225 case 3:
219226 w_c0_perfctrl2(0);
227
+ fallthrough;
220228 case 2:
221229 w_c0_perfctrl1(0);
230
+ fallthrough;
222231 case 1:
223232 w_c0_perfctrl0(0);
224233 }
....@@ -246,8 +255,11 @@
246255 handled = IRQ_HANDLED; \
247256 }
248257 HANDLE_COUNTER(3)
258
+ fallthrough;
249259 HANDLE_COUNTER(2)
260
+ fallthrough;
250261 HANDLE_COUNTER(1)
262
+ fallthrough;
251263 HANDLE_COUNTER(0)
252264 }
253265
....@@ -297,12 +309,15 @@
297309 case 4:
298310 w_c0_perfctrl3(0);
299311 w_c0_perfcntr3(0);
312
+ fallthrough;
300313 case 3:
301314 w_c0_perfctrl2(0);
302315 w_c0_perfcntr2(0);
316
+ fallthrough;
303317 case 2:
304318 w_c0_perfctrl1(0);
305319 w_c0_perfcntr1(0);
320
+ fallthrough;
306321 case 1:
307322 w_c0_perfctrl0(0);
308323 w_c0_perfcntr0(0);
....@@ -407,7 +422,7 @@
407422 op_model_mipsxx_ops.cpu_type = "mips/sb1";
408423 break;
409424
410
- case CPU_LOONGSON1:
425
+ case CPU_LOONGSON32:
411426 op_model_mipsxx_ops.cpu_type = "mips/loongson1";
412427 break;
413428