| .. | .. |
|---|
| 1 | +// SPDX-License-Identifier: GPL-2.0-only |
|---|
| 1 | 2 | /* |
|---|
| 2 | 3 | * arch/arm/common/bL_switcher.c -- big.LITTLE cluster switcher core driver |
|---|
| 3 | 4 | * |
|---|
| 4 | 5 | * Created by: Nicolas Pitre, March 2012 |
|---|
| 5 | 6 | * 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. |
|---|
| 10 | 7 | */ |
|---|
| 11 | 8 | |
|---|
| 12 | 9 | #include <linux/atomic.h> |
|---|
| .. | .. |
|---|
| 273 | 270 | static int bL_switcher_thread(void *arg) |
|---|
| 274 | 271 | { |
|---|
| 275 | 272 | struct bL_thread *t = arg; |
|---|
| 276 | | - struct sched_param param = { .sched_priority = 1 }; |
|---|
| 277 | 273 | int cluster; |
|---|
| 278 | 274 | bL_switch_completion_handler completer; |
|---|
| 279 | 275 | void *completer_cookie; |
|---|
| 280 | 276 | |
|---|
| 281 | | - sched_setscheduler_nocheck(current, SCHED_FIFO, ¶m); |
|---|
| 277 | + sched_set_fifo_low(current); |
|---|
| 282 | 278 | complete(&t->started); |
|---|
| 283 | 279 | |
|---|
| 284 | 280 | do { |
|---|
| .. | .. |
|---|
| 542 | 538 | |
|---|
| 543 | 539 | int bL_switcher_trace_trigger(void) |
|---|
| 544 | 540 | { |
|---|
| 545 | | - int ret; |
|---|
| 546 | | - |
|---|
| 547 | 541 | preempt_disable(); |
|---|
| 548 | 542 | |
|---|
| 549 | 543 | 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); |
|---|
| 551 | 545 | |
|---|
| 552 | 546 | preempt_enable(); |
|---|
| 553 | 547 | |
|---|
| 554 | | - return ret; |
|---|
| 548 | + return 0; |
|---|
| 555 | 549 | } |
|---|
| 556 | 550 | EXPORT_SYMBOL_GPL(bL_switcher_trace_trigger); |
|---|
| 557 | 551 | |
|---|