diff options
Diffstat (limited to 'kernel/sched/isolation.c')
-rw-r--r-- | kernel/sched/isolation.c | 14 |
1 files changed, 7 insertions, 7 deletions
diff --git a/kernel/sched/isolation.c b/kernel/sched/isolation.c index e6802181900f..81faddba9e20 100644 --- a/kernel/sched/isolation.c +++ b/kernel/sched/isolation.c | |||
@@ -8,14 +8,14 @@ | |||
8 | */ | 8 | */ |
9 | #include "sched.h" | 9 | #include "sched.h" |
10 | 10 | ||
11 | DEFINE_STATIC_KEY_FALSE(housekeeping_overriden); | 11 | DEFINE_STATIC_KEY_FALSE(housekeeping_overridden); |
12 | EXPORT_SYMBOL_GPL(housekeeping_overriden); | 12 | EXPORT_SYMBOL_GPL(housekeeping_overridden); |
13 | static cpumask_var_t housekeeping_mask; | 13 | static cpumask_var_t housekeeping_mask; |
14 | static unsigned int housekeeping_flags; | 14 | static unsigned int housekeeping_flags; |
15 | 15 | ||
16 | int housekeeping_any_cpu(enum hk_flags flags) | 16 | int housekeeping_any_cpu(enum hk_flags flags) |
17 | { | 17 | { |
18 | if (static_branch_unlikely(&housekeeping_overriden)) | 18 | if (static_branch_unlikely(&housekeeping_overridden)) |
19 | if (housekeeping_flags & flags) | 19 | if (housekeeping_flags & flags) |
20 | return cpumask_any_and(housekeeping_mask, cpu_online_mask); | 20 | return cpumask_any_and(housekeeping_mask, cpu_online_mask); |
21 | return smp_processor_id(); | 21 | return smp_processor_id(); |
@@ -24,7 +24,7 @@ EXPORT_SYMBOL_GPL(housekeeping_any_cpu); | |||
24 | 24 | ||
25 | const struct cpumask *housekeeping_cpumask(enum hk_flags flags) | 25 | const struct cpumask *housekeeping_cpumask(enum hk_flags flags) |
26 | { | 26 | { |
27 | if (static_branch_unlikely(&housekeeping_overriden)) | 27 | if (static_branch_unlikely(&housekeeping_overridden)) |
28 | if (housekeeping_flags & flags) | 28 | if (housekeeping_flags & flags) |
29 | return housekeeping_mask; | 29 | return housekeeping_mask; |
30 | return cpu_possible_mask; | 30 | return cpu_possible_mask; |
@@ -33,7 +33,7 @@ EXPORT_SYMBOL_GPL(housekeeping_cpumask); | |||
33 | 33 | ||
34 | void housekeeping_affine(struct task_struct *t, enum hk_flags flags) | 34 | void housekeeping_affine(struct task_struct *t, enum hk_flags flags) |
35 | { | 35 | { |
36 | if (static_branch_unlikely(&housekeeping_overriden)) | 36 | if (static_branch_unlikely(&housekeeping_overridden)) |
37 | if (housekeeping_flags & flags) | 37 | if (housekeeping_flags & flags) |
38 | set_cpus_allowed_ptr(t, housekeeping_mask); | 38 | set_cpus_allowed_ptr(t, housekeeping_mask); |
39 | } | 39 | } |
@@ -41,7 +41,7 @@ EXPORT_SYMBOL_GPL(housekeeping_affine); | |||
41 | 41 | ||
42 | bool housekeeping_test_cpu(int cpu, enum hk_flags flags) | 42 | bool housekeeping_test_cpu(int cpu, enum hk_flags flags) |
43 | { | 43 | { |
44 | if (static_branch_unlikely(&housekeeping_overriden)) | 44 | if (static_branch_unlikely(&housekeeping_overridden)) |
45 | if (housekeeping_flags & flags) | 45 | if (housekeeping_flags & flags) |
46 | return cpumask_test_cpu(cpu, housekeeping_mask); | 46 | return cpumask_test_cpu(cpu, housekeeping_mask); |
47 | return true; | 47 | return true; |
@@ -53,7 +53,7 @@ void __init housekeeping_init(void) | |||
53 | if (!housekeeping_flags) | 53 | if (!housekeeping_flags) |
54 | return; | 54 | return; |
55 | 55 | ||
56 | static_branch_enable(&housekeeping_overriden); | 56 | static_branch_enable(&housekeeping_overridden); |
57 | 57 | ||
58 | if (housekeeping_flags & HK_FLAG_TICK) | 58 | if (housekeeping_flags & HK_FLAG_TICK) |
59 | sched_tick_offload_init(); | 59 | sched_tick_offload_init(); |