mirror of
git://git.kernel.org/pub/scm/linux/kernel/git/xiang/erofs.git
synced 2026-10-28 12:53:14 +01:00
This introduces a module for dealing with interrupt-disabled contexts, including the ability to enable and disable interrupts along with the ability to annotate functions as expecting that IRQs are already disabled on the local CPU. Signed-off-by: Lyude Paul <[email protected]> Signed-off-by: Boqun Feng <[email protected]> Signed-off-by: Peter Zijlstra (Intel) <[email protected]> Reviewed-by: Benno Lossin <[email protected]> Reviewed-by: Andreas Hindborg <[email protected]> Reviewed-by: Gary Guo <[email protected]> Link: https://patch.msgid.link/[email protected]
19 lines
390 B
C
19 lines
390 B
C
// SPDX-License-Identifier: GPL-2.0
|
|
|
|
#include <linux/lockdep.h>
|
|
|
|
__rust_helper void rust_helper_lockdep_register_key(struct lock_class_key *k)
|
|
{
|
|
lockdep_register_key(k);
|
|
}
|
|
|
|
__rust_helper void rust_helper_lockdep_unregister_key(struct lock_class_key *k)
|
|
{
|
|
lockdep_unregister_key(k);
|
|
}
|
|
|
|
__rust_helper void rust_helper_lockdep_assert_irqs_disabled(void)
|
|
{
|
|
lockdep_assert_irqs_disabled();
|
|
}
|