mirror of
https://github.com/adulau/aha.git
synced 2024-12-28 03:36:19 +00:00
mutex: Fix missing conditions to build mutex_spin_on_owner()
We don't need to build mutex_spin_on_owner() if we have CONFIG_DEBUG_MUTEXES or CONFIG_HAVE_DEFAULT_NO_SPIN_MUTEXES as it won't be used under such configs. Use CONFIG_MUTEX_SPIN_ON_OWNER as it gathers all the necessary checks before building it. Signed-off-by: Frederic Weisbecker <fweisbec@gmail.com> Acked-by: Peter Zijlstra <peterz@infradead.org> LKML-Reference: <1259783357-8542-2-git-send-regression-fweisbec@gmail.com> Signed-off-by: Ingo Molnar <mingo@elte.hu> Cc: Peter Zijlstra <peterz@infradead.org>
This commit is contained in:
parent
c02260277e
commit
c08f782985
1 changed files with 1 additions and 1 deletions
|
@ -5481,7 +5481,7 @@ need_resched_nonpreemptible:
|
||||||
}
|
}
|
||||||
EXPORT_SYMBOL(schedule);
|
EXPORT_SYMBOL(schedule);
|
||||||
|
|
||||||
#ifdef CONFIG_SMP
|
#ifdef CONFIG_MUTEX_SPIN_ON_OWNER
|
||||||
/*
|
/*
|
||||||
* Look out! "owner" is an entirely speculative pointer
|
* Look out! "owner" is an entirely speculative pointer
|
||||||
* access and not reliable.
|
* access and not reliable.
|
||||||
|
|
Loading…
Reference in a new issue