mirror of
https://github.com/hardkernel/linux.git
synced 2026-06-05 10:31:46 +09:00
ANDROID: sched: Export sched_domains_mutex for lockdep
If CONFIG_LOCKDEP is enabled, export `sched_domains_mutex` as it is indirectly accessed by the macro `for_each_domain()`. This allows vendors to call the `for_each_domain()` macro with CONFIG_LOCKDEP enabled via the GKI_BUILD_CONFIG_FRAGMENT. Bug: 176254015 Signed-off-by: Daniel Mentz <danielmentz@google.com> Change-Id: Ia9f2989de41b2224c63855f2fd129cbeeac4f195 Signed-off-by: Will McVicker <willmcvicker@google.com> (cherry picked from commit7171a5de98) (cherry picked from commite2cdae06e2)
This commit is contained in:
committed by
Treehugger Robot
parent
a24911abfd
commit
f6707f352b
@@ -6,6 +6,9 @@
|
||||
#include <trace/hooks/sched.h>
|
||||
|
||||
DEFINE_MUTEX(sched_domains_mutex);
|
||||
#ifdef CONFIG_LOCKDEP
|
||||
EXPORT_SYMBOL_GPL(sched_domains_mutex);
|
||||
#endif
|
||||
|
||||
/* Protected by sched_domains_mutex: */
|
||||
static cpumask_var_t sched_domains_tmpmask;
|
||||
|
||||
Reference in New Issue
Block a user