|
| 1 | +#ifndef _KERNEL_SCHED_BORE_H |
| 2 | +#define _KERNEL_SCHED_BORE_H |
| 3 | + |
| 4 | +#include <linux/sched.h> |
| 5 | +#include <linux/sched/cputime.h> |
| 6 | +#include <linux/atomic.h> |
| 7 | +#include <linux/list.h> |
| 8 | +#include <linux/rcupdate.h> |
| 9 | +#include <linux/jump_label.h> |
| 10 | + |
| 11 | +#define SCHED_BORE_AUTHOR "Masahito Suzuki" |
| 12 | +#define SCHED_BORE_PROGNAME "BORE CPU Scheduler modification" |
| 13 | + |
| 14 | +#define SCHED_BORE_VERSION "6.6.3" |
| 15 | + |
| 16 | +extern u8 __read_mostly sched_bore; |
| 17 | +DECLARE_STATIC_KEY_TRUE(sched_bore_key); |
| 18 | +extern u8 __read_mostly sched_burst_inherit_type; |
| 19 | +extern u8 __read_mostly sched_burst_smoothness; |
| 20 | +extern u8 __read_mostly sched_burst_penalty_offset; |
| 21 | +extern uint __read_mostly sched_burst_penalty_scale; |
| 22 | +extern uint __read_mostly sched_burst_cache_lifetime; |
| 23 | + |
| 24 | +extern u8 effective_prio_bore(struct task_struct *p); |
| 25 | +extern void update_curr_bore(struct task_struct *p, u64 delta_exec); |
| 26 | +extern void restart_burst_bore(struct task_struct *p); |
| 27 | +extern void restart_burst_rescale_deadline_bore(struct task_struct *p); |
| 28 | +extern void task_fork_bore(struct task_struct *p, struct task_struct *parent, |
| 29 | + u64 clone_flags, u64 now); |
| 30 | +extern void sched_init_bore(void); |
| 31 | +extern void reset_task_bore(struct task_struct *p); |
| 32 | + |
| 33 | +extern int sched_bore_update_handler(const struct ctl_table *table, |
| 34 | + int write, void __user *buffer, size_t *lenp, loff_t *ppos); |
| 35 | +extern int sched_burst_inherit_type_update_handler(const struct ctl_table *table, |
| 36 | + int write, void __user *buffer, size_t *lenp, loff_t *ppos); |
| 37 | + |
| 38 | +extern void reweight_entity( |
| 39 | + struct cfs_rq *cfs_rq, struct sched_entity *se, unsigned long weight); |
| 40 | + |
| 41 | +#endif /* _KERNEL_SCHED_BORE_H */ |
0 commit comments