Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 5c5e1657 authored by Linux Build Service Account's avatar Linux Build Service Account Committed by Gerrit - the friendly Code Review server
Browse files

Merge "sched: Move data structures under CONFIG_SCHED_HMP"

parents 6595d9c1 13899271
Loading
Loading
Loading
Loading
+12 −1
Original line number Diff line number Diff line
@@ -124,7 +124,18 @@ u32 __weak get_freq_max_load(int cpu, u32 freq)
	return 100;
}

DEFINE_PER_CPU(struct freq_max_load *, freq_max_load);
struct freq_max_load_entry {
	/* The maximum load which has accounted governor's headroom. */
	u64 hdemand;
};

struct freq_max_load {
	struct rcu_head rcu;
	int length;
	struct freq_max_load_entry freqs[0];
};

static DEFINE_PER_CPU(struct freq_max_load *, freq_max_load);
static DEFINE_SPINLOCK(freq_max_load_lock);

struct cpu_pwr_stats __weak *get_cpu_pwr_stats(void)
+0 −13
Original line number Diff line number Diff line
@@ -28,19 +28,6 @@ extern atomic_long_t calc_load_tasks;

extern void calc_global_load_tick(struct rq *this_rq);

struct freq_max_load_entry {
	/* The maximum load which has accounted governor's headroom. */
	u64 hdemand;
};

struct freq_max_load {
	struct rcu_head rcu;
	int length;
	struct freq_max_load_entry freqs[0];
};

extern DEFINE_PER_CPU(struct freq_max_load *, freq_max_load);

extern long calc_load_fold_active(struct rq *this_rq);

#ifdef CONFIG_SMP