diff options
Diffstat (limited to 'kernel/sched.c')
-rw-r--r-- | kernel/sched.c | 15 |
1 files changed, 8 insertions, 7 deletions
diff --git a/kernel/sched.c b/kernel/sched.c index b388c9b243e9..558e5f284269 100644 --- a/kernel/sched.c +++ b/kernel/sched.c | |||
@@ -4337,7 +4337,7 @@ void __kprobes sub_preempt_count(int val) | |||
4337 | /* | 4337 | /* |
4338 | * Underflow? | 4338 | * Underflow? |
4339 | */ | 4339 | */ |
4340 | if (DEBUG_LOCKS_WARN_ON(val > preempt_count())) | 4340 | if (DEBUG_LOCKS_WARN_ON(val > preempt_count() - (!!kernel_locked()))) |
4341 | return; | 4341 | return; |
4342 | /* | 4342 | /* |
4343 | * Is the spinlock portion underflowing? | 4343 | * Is the spinlock portion underflowing? |
@@ -7788,13 +7788,14 @@ static int dattrs_equal(struct sched_domain_attr *cur, int idx_cur, | |||
7788 | * | 7788 | * |
7789 | * The passed in 'doms_new' should be kmalloc'd. This routine takes | 7789 | * The passed in 'doms_new' should be kmalloc'd. This routine takes |
7790 | * ownership of it and will kfree it when done with it. If the caller | 7790 | * ownership of it and will kfree it when done with it. If the caller |
7791 | * failed the kmalloc call, then it can pass in doms_new == NULL, | 7791 | * failed the kmalloc call, then it can pass in doms_new == NULL && |
7792 | * and partition_sched_domains() will fallback to the single partition | 7792 | * ndoms_new == 1, and partition_sched_domains() will fallback to |
7793 | * 'fallback_doms', it also forces the domains to be rebuilt. | 7793 | * the single partition 'fallback_doms', it also forces the domains |
7794 | * to be rebuilt. | ||
7794 | * | 7795 | * |
7795 | * If doms_new==NULL it will be replaced with cpu_online_map. | 7796 | * If doms_new == NULL it will be replaced with cpu_online_map. |
7796 | * ndoms_new==0 is a special case for destroying existing domains. | 7797 | * ndoms_new == 0 is a special case for destroying existing domains, |
7797 | * It will not create the default domain. | 7798 | * and it will not create the default domain. |
7798 | * | 7799 | * |
7799 | * Call with hotplug lock held | 7800 | * Call with hotplug lock held |
7800 | */ | 7801 | */ |