kernel: redefine struct k_spinlock_key

This is not intended to be public, all users are expected
to be using the opaque k_spinlock_key_t.

Signed-off-by: Andrew Boie <andrew.p.boie@intel.com>
This commit is contained in:
Andrew Boie 2020-09-28 13:25:35 -07:00 committed by Anas Nashif
commit b7e1e21b3c

View file

@ -11,7 +11,7 @@
#include <stdbool.h>
#include <arch/cpu.h>
struct k_spinlock_key {
struct z_spinlock_key {
int key;
};
@ -75,7 +75,7 @@ BUILD_ASSERT(CONFIG_MP_NUM_CPUS < 4, "Too many CPUs for mask");
* This type is opaque and should not be inspected by application
* code.
*/
typedef struct k_spinlock_key k_spinlock_key_t;
typedef struct z_spinlock_key k_spinlock_key_t;
/**
* @brief Lock a spinlock