Merge branch 'sched/core' into core/locking, to prepare the kernel/locking/ file move
Conflicts: kernel/Makefile There are conflicts in kernel/Makefile due to file moving in the scheduler tree - resolve them. Signed-off-by: Ingo Molnar <mingo@kernel.org>
This commit is contained in:
@@ -1002,7 +1002,7 @@ static void dotest(void (*testcase_fn)(void), int expected, int lockclass_mask)
|
||||
* Some tests (e.g. double-unlock) might corrupt the preemption
|
||||
* count, so restore it:
|
||||
*/
|
||||
preempt_count() = saved_preempt_count;
|
||||
preempt_count_set(saved_preempt_count);
|
||||
#ifdef CONFIG_TRACE_IRQFLAGS
|
||||
if (softirq_count())
|
||||
current->softirqs_enabled = 0;
|
||||
|
||||
@@ -9,10 +9,9 @@
|
||||
|
||||
notrace unsigned int debug_smp_processor_id(void)
|
||||
{
|
||||
unsigned long preempt_count = preempt_count();
|
||||
int this_cpu = raw_smp_processor_id();
|
||||
|
||||
if (likely(preempt_count))
|
||||
if (likely(preempt_count()))
|
||||
goto out;
|
||||
|
||||
if (irqs_disabled())
|
||||
|
||||
Reference in New Issue
Block a user