hc
2023-12-09 b22da3d8526a935aa31e086e63f60ff3246cb61c
kernel/arch/arm/common/bL_switcher.c
....@@ -1,12 +1,9 @@
1
+// SPDX-License-Identifier: GPL-2.0-only
12 /*
23 * arch/arm/common/bL_switcher.c -- big.LITTLE cluster switcher core driver
34 *
45 * Created by: Nicolas Pitre, March 2012
56 * Copyright: (C) 2012-2013 Linaro Limited
6
- *
7
- * This program is free software; you can redistribute it and/or modify
8
- * it under the terms of the GNU General Public License version 2 as
9
- * published by the Free Software Foundation.
107 */
118
129 #include <linux/atomic.h>
....@@ -273,12 +270,11 @@
273270 static int bL_switcher_thread(void *arg)
274271 {
275272 struct bL_thread *t = arg;
276
- struct sched_param param = { .sched_priority = 1 };
277273 int cluster;
278274 bL_switch_completion_handler completer;
279275 void *completer_cookie;
280276
281
- sched_setscheduler_nocheck(current, SCHED_FIFO, &param);
277
+ sched_set_fifo_low(current);
282278 complete(&t->started);
283279
284280 do {
....@@ -542,16 +538,14 @@
542538
543539 int bL_switcher_trace_trigger(void)
544540 {
545
- int ret;
546
-
547541 preempt_disable();
548542
549543 bL_switcher_trace_trigger_cpu(NULL);
550
- ret = smp_call_function(bL_switcher_trace_trigger_cpu, NULL, true);
544
+ smp_call_function(bL_switcher_trace_trigger_cpu, NULL, true);
551545
552546 preempt_enable();
553547
554
- return ret;
548
+ return 0;
555549 }
556550 EXPORT_SYMBOL_GPL(bL_switcher_trace_trigger);
557551