spinlock.h (4f2c0a4acffbec01079c28f839422e64ddeff004) spinlock.h (208da1d5fc3c67d8ae5d34e844fd67cc47a136f0)
1/* SPDX-License-Identifier: GPL-2.0 */
2/*
3 * S390 version
4 * Copyright IBM Corp. 1999
5 * Author(s): Martin Schwidefsky (schwidefsky@de.ibm.com)
6 *
7 * Derived from "include/asm-i386/spinlock.h"
8 */
9
10#ifndef __ASM_SPINLOCK_H
11#define __ASM_SPINLOCK_H
12
13#include <linux/smp.h>
14#include <asm/atomic_ops.h>
15#include <asm/barrier.h>
16#include <asm/processor.h>
17#include <asm/alternative.h>
18
1/* SPDX-License-Identifier: GPL-2.0 */
2/*
3 * S390 version
4 * Copyright IBM Corp. 1999
5 * Author(s): Martin Schwidefsky (schwidefsky@de.ibm.com)
6 *
7 * Derived from "include/asm-i386/spinlock.h"
8 */
9
10#ifndef __ASM_SPINLOCK_H
11#define __ASM_SPINLOCK_H
12
13#include <linux/smp.h>
14#include <asm/atomic_ops.h>
15#include <asm/barrier.h>
16#include <asm/processor.h>
17#include <asm/alternative.h>
18
19#define SPINLOCK_LOCKVAL (S390_lowcore.spinlock_lockval)
19#define SPINLOCK_LOCKVAL (get_lowcore()->spinlock_lockval)
20
21extern int spin_retry;
22
23bool arch_vcpu_is_preempted(int cpu);
24
25#define vcpu_is_preempted arch_vcpu_is_preempted
26
27/*

--- 121 unchanged lines hidden ---
20
21extern int spin_retry;
22
23bool arch_vcpu_is_preempted(int cpu);
24
25#define vcpu_is_preempted arch_vcpu_is_preempted
26
27/*

--- 121 unchanged lines hidden ---