提交 8a53999a 编写于 作者: C Cheng Jian

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: NCheng Jian <cj.chengjian@huawei.com>
Reviewed-by: NXie XiuQi <xiexiuqi@huawei.com>
上级 edf8c7d2
......@@ -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
};
......
......@@ -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;
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册