File tree Expand file tree Collapse file tree 9 files changed +17
-10
lines changed Expand file tree Collapse file tree 9 files changed +17
-10
lines changed Original file line number Diff line number Diff line change @@ -2388,4 +2388,6 @@ static inline void sched_core_free(struct task_struct *tsk) { }
2388
2388
static inline void sched_core_fork (struct task_struct * p ) { }
2389
2389
#endif
2390
2390
2391
+ extern void sched_set_stop_task (int cpu , struct task_struct * stop );
2392
+
2391
2393
#endif
Original file line number Diff line number Diff line change 15
15
/* Headers: */
16
16
#include <linux/sched/clock.h>
17
17
#include <linux/sched/cputime.h>
18
+ #include <linux/sched/hotplug.h>
18
19
#include <linux/sched/posix-timers.h>
19
20
#include <linux/sched/rt.h>
20
21
31
32
#include <uapi/linux/sched/types.h>
32
33
33
34
#include "sched.h"
35
+ #include "smp.h"
34
36
35
37
#include "autogroup.h"
36
38
#include "stats.h"
Original file line number Diff line number Diff line change 14
14
#include <linux/sched/debug.h>
15
15
#include <linux/sched/isolation.h>
16
16
#include <linux/sched/loadavg.h>
17
+ #include <linux/sched/nohz.h>
17
18
#include <linux/sched/mm.h>
18
19
#include <linux/sched/rseq_api.h>
19
20
#include <linux/sched/task_stack.h>
Original file line number Diff line number Diff line change 26
26
#include <linux/topology.h>
27
27
#include <linux/sched/clock.h>
28
28
#include <linux/sched/cond_resched.h>
29
+ #include <linux/sched/cputime.h>
29
30
#include <linux/sched/debug.h>
31
+ #include <linux/sched/hotplug.h>
32
+ #include <linux/sched/init.h>
30
33
#include <linux/sched/isolation.h>
31
34
#include <linux/sched/loadavg.h>
32
35
#include <linux/sched/mm.h>
Original file line number Diff line number Diff line change @@ -1220,8 +1220,6 @@ int dl_runtime_exceeded(struct sched_dl_entity *dl_se)
1220
1220
return (dl_se -> runtime <= 0 );
1221
1221
}
1222
1222
1223
- extern bool sched_rt_bandwidth_account (struct rt_rq * rt_rq );
1224
-
1225
1223
/*
1226
1224
* This function implements the GRUB accounting rule:
1227
1225
* according to the GRUB reclaiming algorithm, the runtime is
Original file line number Diff line number Diff line change 36
36
#include <linux/sched/cond_resched.h>
37
37
#include <linux/sched/cputime.h>
38
38
#include <linux/sched/isolation.h>
39
+ #include <linux/sched/nohz.h>
39
40
40
41
#include <linux/cpuidle.h>
41
42
#include <linux/interrupt.h>
Original file line number Diff line number Diff line change @@ -1833,12 +1833,7 @@ static inline void dirty_sched_domain_sysctl(int cpu)
1833
1833
#endif
1834
1834
1835
1835
extern int sched_update_scaling (void );
1836
-
1837
- extern void flush_smp_call_function_from_idle (void );
1838
-
1839
- #else /* !CONFIG_SMP: */
1840
- static inline void flush_smp_call_function_from_idle (void ) { }
1841
- #endif
1836
+ #endif /* CONFIG_SMP */
1842
1837
1843
1838
#include "stats.h"
1844
1839
@@ -2315,6 +2310,7 @@ extern void resched_cpu(int cpu);
2315
2310
2316
2311
extern struct rt_bandwidth def_rt_bandwidth ;
2317
2312
extern void init_rt_bandwidth (struct rt_bandwidth * rt_b , u64 period , u64 runtime );
2313
+ extern bool sched_rt_bandwidth_account (struct rt_rq * rt_rq );
2318
2314
2319
2315
extern void init_dl_bandwidth (struct dl_bandwidth * dl_b , u64 period , u64 runtime );
2320
2316
extern void init_dl_task_timer (struct sched_dl_entity * dl_se );
Original file line number Diff line number Diff line change 7
7
extern void sched_ttwu_pending (void * arg );
8
8
9
9
extern void send_call_function_single_ipi (int cpu );
10
+
11
+ #ifdef CONFIG_SMP
12
+ extern void flush_smp_call_function_from_idle (void );
13
+ #else
14
+ static inline void flush_smp_call_function_from_idle (void ) { }
15
+ #endif
Original file line number Diff line number Diff line change @@ -535,8 +535,6 @@ void stop_machine_park(int cpu)
535
535
kthread_park (stopper -> thread );
536
536
}
537
537
538
- extern void sched_set_stop_task (int cpu , struct task_struct * stop );
539
-
540
538
static void cpu_stop_create (unsigned int cpu )
541
539
{
542
540
sched_set_stop_task (cpu , per_cpu (cpu_stopper .thread , cpu ));
You can’t perform that action at this time.
0 commit comments