diff options
Diffstat (limited to 'kernel/sched/core.c')
-rw-r--r-- | kernel/sched/core.c | 40 |
1 files changed, 13 insertions, 27 deletions
diff --git a/kernel/sched/core.c b/kernel/sched/core.c index 9427b59551c1..e1e334ba8ff9 100644 --- a/kernel/sched/core.c +++ b/kernel/sched/core.c | |||
@@ -5,37 +5,11 @@ | |||
5 | * | 5 | * |
6 | * Copyright (C) 1991-2002 Linus Torvalds | 6 | * Copyright (C) 1991-2002 Linus Torvalds |
7 | */ | 7 | */ |
8 | #include <linux/sched.h> | 8 | #include "sched.h" |
9 | #include <linux/sched/clock.h> | ||
10 | #include <uapi/linux/sched/types.h> | ||
11 | #include <linux/sched/loadavg.h> | ||
12 | #include <linux/sched/hotplug.h> | ||
13 | #include <linux/wait_bit.h> | ||
14 | #include <linux/cpuset.h> | ||
15 | #include <linux/delayacct.h> | ||
16 | #include <linux/init_task.h> | ||
17 | #include <linux/context_tracking.h> | ||
18 | #include <linux/rcupdate_wait.h> | ||
19 | #include <linux/compat.h> | ||
20 | |||
21 | #include <linux/blkdev.h> | ||
22 | #include <linux/kprobes.h> | ||
23 | #include <linux/mmu_context.h> | ||
24 | #include <linux/module.h> | ||
25 | #include <linux/nmi.h> | ||
26 | #include <linux/prefetch.h> | ||
27 | #include <linux/profile.h> | ||
28 | #include <linux/security.h> | ||
29 | #include <linux/syscalls.h> | ||
30 | #include <linux/sched/isolation.h> | ||
31 | 9 | ||
32 | #include <asm/switch_to.h> | 10 | #include <asm/switch_to.h> |
33 | #include <asm/tlb.h> | 11 | #include <asm/tlb.h> |
34 | #ifdef CONFIG_PARAVIRT | ||
35 | #include <asm/paravirt.h> | ||
36 | #endif | ||
37 | 12 | ||
38 | #include "sched.h" | ||
39 | #include "../workqueue_internal.h" | 13 | #include "../workqueue_internal.h" |
40 | #include "../smpboot.h" | 14 | #include "../smpboot.h" |
41 | 15 | ||
@@ -2629,6 +2603,18 @@ static inline void finish_lock_switch(struct rq *rq) | |||
2629 | raw_spin_unlock_irq(&rq->lock); | 2603 | raw_spin_unlock_irq(&rq->lock); |
2630 | } | 2604 | } |
2631 | 2605 | ||
2606 | /* | ||
2607 | * NOP if the arch has not defined these: | ||
2608 | */ | ||
2609 | |||
2610 | #ifndef prepare_arch_switch | ||
2611 | # define prepare_arch_switch(next) do { } while (0) | ||
2612 | #endif | ||
2613 | |||
2614 | #ifndef finish_arch_post_lock_switch | ||
2615 | # define finish_arch_post_lock_switch() do { } while (0) | ||
2616 | #endif | ||
2617 | |||
2632 | /** | 2618 | /** |
2633 | * prepare_task_switch - prepare to switch tasks | 2619 | * prepare_task_switch - prepare to switch tasks |
2634 | * @rq: the runqueue preparing to switch | 2620 | * @rq: the runqueue preparing to switch |