1 // © 2021 Qualcomm Innovation Center, Inc. All rights reserved.
2 //
3 // SPDX-License-Identifier: BSD-3-Clause
4 
5 #ifdef __EVENTS_DSL__
6 #define acquire_preempt_disabled acquire_lock preempt_disabled
7 #define release_preempt_disabled release_lock preempt_disabled
8 #define require_preempt_disabled require_lock preempt_disabled
9 #define exclude_preempt_disabled exclude_lock preempt_disabled
10 #else
11 #define ACQUIRE_PREEMPT_DISABLED ACQUIRE_LOCK(preempt_disabled)
12 #define TRY_ACQUIRE_PREEMPT_DISABLED(success)                                  \
13 	TRY_ACQUIRE_LOCK(success, preempt_disabled)
14 #define RELEASE_PREEMPT_DISABLED RELEASE_LOCK(preempt_disabled)
15 #define REQUIRE_PREEMPT_DISABLED REQUIRE_LOCK(preempt_disabled)
16 #define EXCLUDE_PREEMPT_DISABLED EXCLUDE_LOCK(preempt_disabled)
17 #endif
18