kernel: Add snapshot of changes to support cpu isolation

This snapshot is taken from msm-4.19 as of commit 5debecbe7195
("trace: filter out spurious preemption and IRQs disable traces").

Change-Id: I222aa448ac68f7365065f62dba9db94925da38a0
Signed-off-by: Satya Durga Srinivasu Prabhala <satyap@codeaurora.org>
This commit is contained in:
Satya Durga Srinivasu Prabhala
2019-09-17 10:34:18 -07:00
parent 8573d7bfaa
commit 201ea48219
20 changed files with 398 additions and 77 deletions

View File

@@ -239,6 +239,27 @@ enum migrate_types {
RQ_TO_GROUP,
};
#ifdef CONFIG_HOTPLUG_CPU
extern int __weak sched_isolate_cpu(int cpu);
extern int __weak sched_unisolate_cpu(int cpu);
extern int __weak sched_unisolate_cpu_unlocked(int cpu);
#else
static inline int sched_isolate_cpu(int cpu)
{
return 0;
}
static inline int sched_unisolate_cpu(int cpu)
{
return 0;
}
static inline int sched_unisolate_cpu_unlocked(int cpu)
{
return 0;
}
#endif
extern void scheduler_tick(void);
#define MAX_SCHEDULE_TIMEOUT LONG_MAX