mirror of
https://github.com/hardkernel/linux.git
synced 2026-06-07 11:26:02 +09:00
soc: rockchip: rockchip_performance: fix build error for kernel 6.1
In file included from drivers/soc/rockchip/rockchip_performance.c:9:
./include/uapi/../../kernel/sched/sched.h:3226:2: error: implicit declaration of function 'account_group_exec_runtime' is invalid in C99 [-Werror,-Wimplicit-function-declaration]
account_group_exec_runtime(curr, delta_exec);
^
drivers/soc/rockchip/rockchip_performance.c:19:2: error: use of undeclared identifier 'sysctl_sched_uclamp_util_min_rt_default'
sysctl_sched_uclamp_util_min_rt_default = util;
^
2 errors generated.
Change-Id: Ia8a25a77429e60935c2a832f741f6ca2512bb51d
Signed-off-by: Liang Chen <cl@rock-chips.com>
This commit is contained in:
@@ -5,6 +5,7 @@
|
||||
#include <linux/kernel.h>
|
||||
#include <linux/proc_fs.h>
|
||||
#include <linux/seq_file.h>
|
||||
#include <linux/sched/cputime.h>
|
||||
#include <soc/rockchip/rockchip_performance.h>
|
||||
#include <../../kernel/sched/sched.h>
|
||||
|
||||
@@ -16,7 +17,6 @@ static DEFINE_MUTEX(update_mutex);
|
||||
#ifdef CONFIG_UCLAMP_TASK
|
||||
static inline void set_uclamp_util_min_rt(unsigned int util)
|
||||
{
|
||||
sysctl_sched_uclamp_util_min_rt_default = util;
|
||||
static_branch_enable(&sched_uclamp_used);
|
||||
rockchip_perf_uclamp_sync_util_min_rt_default();
|
||||
}
|
||||
@@ -145,7 +145,7 @@ struct cpumask *rockchip_perf_get_cpub_mask(void)
|
||||
int rockchip_perf_select_rt_cpu(int prev_cpu, struct cpumask *lowest_mask)
|
||||
{
|
||||
struct cpumask target_mask;
|
||||
int cpu = nr_cpu_ids;
|
||||
int cpu;
|
||||
|
||||
if (!perf_init_done)
|
||||
return prev_cpu;
|
||||
|
||||
Reference in New Issue
Block a user