forked from Minki/linux
sched: make clock sync tunable by architecture code
make time_sync_thresh tunable to architecture code. Signed-off-by: Ingo Molnar <mingo@elte.hu>
This commit is contained in:
parent
d7dcdc11cf
commit
690229a091
@ -158,6 +158,8 @@ print_cfs_rq(struct seq_file *m, int cpu, struct cfs_rq *cfs_rq)
|
|||||||
}
|
}
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
extern unsigned long long time_sync_thresh;
|
||||||
|
|
||||||
/*
|
/*
|
||||||
* Task state bitmask. NOTE! These bits are also
|
* Task state bitmask. NOTE! These bits are also
|
||||||
* encoded in fs/proc/array.c: get_task_state().
|
* encoded in fs/proc/array.c: get_task_state().
|
||||||
|
@ -899,7 +899,7 @@ static inline u64 global_rt_runtime(void)
|
|||||||
return (u64)sysctl_sched_rt_runtime * NSEC_PER_USEC;
|
return (u64)sysctl_sched_rt_runtime * NSEC_PER_USEC;
|
||||||
}
|
}
|
||||||
|
|
||||||
static const unsigned long long time_sync_thresh = 100000;
|
unsigned long long time_sync_thresh = 100000;
|
||||||
|
|
||||||
static DEFINE_PER_CPU(unsigned long long, time_offset);
|
static DEFINE_PER_CPU(unsigned long long, time_offset);
|
||||||
static DEFINE_PER_CPU(unsigned long long, prev_cpu_time);
|
static DEFINE_PER_CPU(unsigned long long, prev_cpu_time);
|
||||||
|
Loading…
Reference in New Issue
Block a user