17 lines
396 B
C
17 lines
396 B
C
/* SPDX-License-Identifier: GPL-2.0-only */
|
|
#ifndef _SPINLOCK_H_
|
|
#define _SPINLOCK_H_
|
|
|
|
#include <kernel/types.h>
|
|
#include <kernel/common.h>
|
|
|
|
#define CLEANUP_SLOCK CLEANUP(cleanup_spinlock)
|
|
|
|
typedef u32 spinlock_t;
|
|
typedef spinlock_t mtx_t;
|
|
|
|
void spinlock_acquire(spinlock_t *lock);
|
|
void spinlock_release(spinlock_t *lock);
|
|
void cleanup_spinlock(spinlock_t **lock_ptr);
|
|
|
|
#endif /* _SPINLOCK_H_ */
|