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:
@@ -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
|
||||
|
Reference in New Issue
Block a user