cachepc-linux

Fork of AMDESE/linux with modifications for CachePC side-channel attack
git clone https://git.sinitax.com/sinitax/cachepc-linux
Log | Files | Refs | README | LICENSE | sfeed.txt

spinlock_types.h (404B)


      1/* SPDX-License-Identifier: GPL-2.0 */
      2
      3#ifndef __ASM_GENERIC_SPINLOCK_TYPES_H
      4#define __ASM_GENERIC_SPINLOCK_TYPES_H
      5
      6#include <linux/types.h>
      7typedef atomic_t arch_spinlock_t;
      8
      9/*
     10 * qrwlock_types depends on arch_spinlock_t, so we must typedef that before the
     11 * include.
     12 */
     13#include <asm/qrwlock_types.h>
     14
     15#define __ARCH_SPIN_LOCK_UNLOCKED	ATOMIC_INIT(0)
     16
     17#endif /* __ASM_GENERIC_SPINLOCK_TYPES_H */