ANDROID: sched: gki: add padding to some structs to support WALT
Add padding to below structs to support WALT based accounting: 1. struct cpu_topology 2. struct task_struct 3. struct sched_domain_shared 4. struct task_group 5. struct root_domain 6. struct rq To accommodate potential future changes, reserving more memory than what WALT needs today. Bug: 171858786 Change-Id: If6d901174fc7963be3ae44daa799cb2953669ec1 Signed-off-by: Satya Durga Srinivasu Prabhala <satyap@codeaurora.org>
This commit is contained in:
committed by
Todd Kjos
parent
8d5dc2cf06
commit
7a2a316228
@@ -7,6 +7,7 @@
|
||||
|
||||
#include <linux/types.h>
|
||||
#include <linux/percpu.h>
|
||||
#include <linux/android_vendor.h>
|
||||
|
||||
void topology_normalize_cpu_scale(void);
|
||||
int topology_update_cpu_topology(void);
|
||||
@@ -54,6 +55,8 @@ struct cpu_topology {
|
||||
cpumask_t thread_sibling;
|
||||
cpumask_t core_sibling;
|
||||
cpumask_t llc_sibling;
|
||||
|
||||
cpumask_t android_vendor_data1;
|
||||
};
|
||||
|
||||
#ifdef CONFIG_GENERIC_ARCH_TOPOLOGY
|
||||
|
||||
@@ -1330,7 +1330,7 @@ struct task_struct {
|
||||
__mce_reserved : 62;
|
||||
struct callback_head mce_kill_me;
|
||||
#endif
|
||||
ANDROID_VENDOR_DATA_ARRAY(1, 2);
|
||||
ANDROID_VENDOR_DATA_ARRAY(1, 64);
|
||||
|
||||
/*
|
||||
* New fields for task_struct should be added above here, so that
|
||||
|
||||
@@ -3,6 +3,7 @@
|
||||
#define _LINUX_SCHED_TOPOLOGY_H
|
||||
|
||||
#include <linux/topology.h>
|
||||
#include <linux/android_vendor.h>
|
||||
|
||||
#include <linux/sched/idle.h>
|
||||
|
||||
@@ -74,6 +75,8 @@ struct sched_domain_shared {
|
||||
atomic_t ref;
|
||||
atomic_t nr_busy_cpus;
|
||||
int has_idle_cores;
|
||||
|
||||
ANDROID_VENDOR_DATA(1);
|
||||
};
|
||||
|
||||
struct sched_domain {
|
||||
|
||||
@@ -65,6 +65,7 @@
|
||||
#include <linux/syscalls.h>
|
||||
#include <linux/task_work.h>
|
||||
#include <linux/tsacct_kern.h>
|
||||
#include <linux/android_vendor.h>
|
||||
|
||||
#include <asm/tlb.h>
|
||||
#include <asm-generic/vmlinux.lds.h>
|
||||
@@ -430,6 +431,8 @@ struct task_group {
|
||||
struct uclamp_se uclamp[UCLAMP_CNT];
|
||||
/* Latency-sensitive flag used for a task group */
|
||||
unsigned int latency_sensitive;
|
||||
|
||||
ANDROID_VENDOR_DATA_ARRAY(1, 4);
|
||||
#endif
|
||||
|
||||
};
|
||||
@@ -830,6 +833,8 @@ struct root_domain {
|
||||
* CPUs of the rd. Protected by RCU.
|
||||
*/
|
||||
struct perf_domain __rcu *pd;
|
||||
|
||||
ANDROID_VENDOR_DATA_ARRAY(1, 4);
|
||||
};
|
||||
|
||||
extern void init_defrootdomain(void);
|
||||
@@ -1050,6 +1055,8 @@ struct rq {
|
||||
/* Must be inspected within a rcu lock section */
|
||||
struct cpuidle_state *idle_state;
|
||||
#endif
|
||||
|
||||
ANDROID_VENDOR_DATA_ARRAY(1, 96);
|
||||
};
|
||||
|
||||
#ifdef CONFIG_FAIR_GROUP_SCHED
|
||||
|
||||
Reference in New Issue
Block a user