Commit 8a53999a authored by Cheng Jian's avatar Cheng Jian
Browse files

sched/fair: fix kabi broken due to adding fields in rq and sched_domain_shared

hulk inclusion
category: bugfix
bugzilla: 38261, https://bugzilla.openeuler.org/show_bug.cgi?id=23


CVE: NA

---------------------------

Previous patches added fields in struct rq and sched_domain_shared,
which caused the KABI changed.

We can use some helper structures to fix this KABI change, but this is
not necessary, because these structures are only used internally, the
driver is not aware of them, so we simply avoid them.

Signed-off-by: default avatarCheng Jian <cj.chengjian@huawei.com>
Reviewed-by: default avatarXie XiuQi <xiexiuqi@huawei.com>
parent edf8c7d2
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -72,7 +72,7 @@ struct sched_domain_shared {
	atomic_t	ref;
	atomic_t	nr_busy_cpus;
	int		has_idle_cores;
#ifdef CONFIG_SCHED_STEAL
#if defined(CONFIG_SCHED_STEAL) && !defined(__GENKSYMS__)
	struct sparsemask *cfs_overload_cpus;
#endif
};
+2 −2
Original line number Diff line number Diff line
@@ -832,7 +832,7 @@ struct rq {
	struct cfs_rq		cfs;
	struct rt_rq		rt;
	struct dl_rq		dl;
#ifdef CONFIG_SCHED_STEAL
#if defined(CONFIG_SCHED_STEAL) && !defined(__GENKSYMS__)
	struct sparsemask	*cfs_overload_cpus;
#endif

@@ -939,7 +939,7 @@ struct rq {
	unsigned int		ttwu_count;
	unsigned int		ttwu_local;

#ifdef CONFIG_SCHED_STEAL
#if defined(CONFIG_SCHED_STEAL) && !defined(__GENKSYMS__)
	/* Idle search stats */
	unsigned int		found_idle_core;
	unsigned int		found_idle_cpu;