Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
openeuler
Kernel
提交
f05d6717
K
Kernel
项目概览
openeuler
/
Kernel
1 年多 前同步成功
通知
8
Star
0
Fork
0
代码
文件
提交
分支
Tags
贡献者
分支图
Diff
Issue
0
列表
看板
标记
里程碑
合并请求
0
DevOps
流水线
流水线任务
计划
Wiki
0
Wiki
分析
仓库
DevOps
项目成员
Pages
K
Kernel
项目概览
项目概览
详情
发布
仓库
仓库
文件
提交
分支
标签
贡献者
分支图
比较
Issue
0
Issue
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
Pages
DevOps
DevOps
流水线
流水线任务
计划
分析
分析
仓库分析
DevOps
Wiki
0
Wiki
成员
成员
收起侧边栏
关闭侧边栏
动态
分支图
创建新Issue
流水线任务
提交
Issue看板
提交
f05d6717
编写于
7月 29, 2020
作者:
P
Peter Zijlstra
浏览文件
操作
浏览文件
下载
差异文件
Merge branch 'locking/header'
上级
c84d5305
459e3953
变更
22
隐藏空白更改
内联
并排
Showing
22 changed file
with
3 addition
and
42 deletion
+3
-42
arch/alpha/include/asm/atomic.h
arch/alpha/include/asm/atomic.h
+0
-1
arch/arc/include/asm/atomic.h
arch/arc/include/asm/atomic.h
+0
-2
arch/arm/include/asm/atomic.h
arch/arm/include/asm/atomic.h
+0
-2
arch/arm64/include/asm/atomic.h
arch/arm64/include/asm/atomic.h
+0
-2
arch/h8300/include/asm/atomic.h
arch/h8300/include/asm/atomic.h
+0
-2
arch/hexagon/include/asm/atomic.h
arch/hexagon/include/asm/atomic.h
+0
-2
arch/ia64/include/asm/atomic.h
arch/ia64/include/asm/atomic.h
+0
-1
arch/m68k/include/asm/atomic.h
arch/m68k/include/asm/atomic.h
+0
-2
arch/mips/include/asm/atomic.h
arch/mips/include/asm/atomic.h
+0
-1
arch/parisc/include/asm/atomic.h
arch/parisc/include/asm/atomic.h
+0
-2
arch/powerpc/include/asm/atomic.h
arch/powerpc/include/asm/atomic.h
+0
-2
arch/riscv/include/asm/atomic.h
arch/riscv/include/asm/atomic.h
+0
-2
arch/s390/include/asm/atomic.h
arch/s390/include/asm/atomic.h
+0
-2
arch/sh/include/asm/atomic.h
arch/sh/include/asm/atomic.h
+0
-2
arch/sparc/include/asm/atomic_32.h
arch/sparc/include/asm/atomic_32.h
+0
-2
arch/sparc/include/asm/atomic_64.h
arch/sparc/include/asm/atomic_64.h
+0
-1
arch/x86/include/asm/atomic.h
arch/x86/include/asm/atomic.h
+0
-2
arch/xtensa/include/asm/atomic.h
arch/xtensa/include/asm/atomic.h
+0
-2
include/asm-generic/atomic.h
include/asm-generic/atomic.h
+0
-2
include/asm-generic/qspinlock.h
include/asm-generic/qspinlock.h
+1
-0
include/asm-generic/qspinlock_types.h
include/asm-generic/qspinlock_types.h
+0
-8
include/linux/types.h
include/linux/types.h
+2
-0
未找到文件。
arch/alpha/include/asm/atomic.h
浏览文件 @
f05d6717
...
...
@@ -24,7 +24,6 @@
#define __atomic_acquire_fence()
#define __atomic_post_full_fence()
#define ATOMIC_INIT(i) { (i) }
#define ATOMIC64_INIT(i) { (i) }
#define atomic_read(v) READ_ONCE((v)->counter)
...
...
arch/arc/include/asm/atomic.h
浏览文件 @
f05d6717
...
...
@@ -14,8 +14,6 @@
#include <asm/barrier.h>
#include <asm/smp.h>
#define ATOMIC_INIT(i) { (i) }
#ifndef CONFIG_ARC_PLAT_EZNPS
#define atomic_read(v) READ_ONCE((v)->counter)
...
...
arch/arm/include/asm/atomic.h
浏览文件 @
f05d6717
...
...
@@ -15,8 +15,6 @@
#include <asm/barrier.h>
#include <asm/cmpxchg.h>
#define ATOMIC_INIT(i) { (i) }
#ifdef __KERNEL__
/*
...
...
arch/arm64/include/asm/atomic.h
浏览文件 @
f05d6717
...
...
@@ -99,8 +99,6 @@ static inline long arch_atomic64_dec_if_positive(atomic64_t *v)
return
__lse_ll_sc_body
(
atomic64_dec_if_positive
,
v
);
}
#define ATOMIC_INIT(i) { (i) }
#define arch_atomic_read(v) __READ_ONCE((v)->counter)
#define arch_atomic_set(v, i) __WRITE_ONCE(((v)->counter), (i))
...
...
arch/h8300/include/asm/atomic.h
浏览文件 @
f05d6717
...
...
@@ -12,8 +12,6 @@
* resource counting etc..
*/
#define ATOMIC_INIT(i) { (i) }
#define atomic_read(v) READ_ONCE((v)->counter)
#define atomic_set(v, i) WRITE_ONCE(((v)->counter), (i))
...
...
arch/hexagon/include/asm/atomic.h
浏览文件 @
f05d6717
...
...
@@ -12,8 +12,6 @@
#include <asm/cmpxchg.h>
#include <asm/barrier.h>
#define ATOMIC_INIT(i) { (i) }
/* Normal writes in our arch don't clear lock reservations */
static
inline
void
atomic_set
(
atomic_t
*
v
,
int
new
)
...
...
arch/ia64/include/asm/atomic.h
浏览文件 @
f05d6717
...
...
@@ -19,7 +19,6 @@
#include <asm/barrier.h>
#define ATOMIC_INIT(i) { (i) }
#define ATOMIC64_INIT(i) { (i) }
#define atomic_read(v) READ_ONCE((v)->counter)
...
...
arch/m68k/include/asm/atomic.h
浏览文件 @
f05d6717
...
...
@@ -16,8 +16,6 @@
* We do not have SMP m68k systems, so we don't have to deal with that.
*/
#define ATOMIC_INIT(i) { (i) }
#define atomic_read(v) READ_ONCE((v)->counter)
#define atomic_set(v, i) WRITE_ONCE(((v)->counter), (i))
...
...
arch/mips/include/asm/atomic.h
浏览文件 @
f05d6717
...
...
@@ -45,7 +45,6 @@ static __always_inline type pfx##_xchg(pfx##_t *v, type n) \
return xchg(&v->counter, n); \
}
#define ATOMIC_INIT(i) { (i) }
ATOMIC_OPS
(
atomic
,
int
)
#ifdef CONFIG_64BIT
...
...
arch/parisc/include/asm/atomic.h
浏览文件 @
f05d6717
...
...
@@ -136,8 +136,6 @@ ATOMIC_OPS(xor, ^=)
#undef ATOMIC_OP_RETURN
#undef ATOMIC_OP
#define ATOMIC_INIT(i) { (i) }
#ifdef CONFIG_64BIT
#define ATOMIC64_INIT(i) { (i) }
...
...
arch/powerpc/include/asm/atomic.h
浏览文件 @
f05d6717
...
...
@@ -11,8 +11,6 @@
#include <asm/cmpxchg.h>
#include <asm/barrier.h>
#define ATOMIC_INIT(i) { (i) }
/*
* Since *_return_relaxed and {cmp}xchg_relaxed are implemented with
* a "bne-" instruction at the end, so an isync is enough as a acquire barrier
...
...
arch/riscv/include/asm/atomic.h
浏览文件 @
f05d6717
...
...
@@ -19,8 +19,6 @@
#include <asm/cmpxchg.h>
#include <asm/barrier.h>
#define ATOMIC_INIT(i) { (i) }
#define __atomic_acquire_fence() \
__asm__ __volatile__(RISCV_ACQUIRE_BARRIER "" ::: "memory")
...
...
arch/s390/include/asm/atomic.h
浏览文件 @
f05d6717
...
...
@@ -15,8 +15,6 @@
#include <asm/barrier.h>
#include <asm/cmpxchg.h>
#define ATOMIC_INIT(i) { (i) }
static
inline
int
atomic_read
(
const
atomic_t
*
v
)
{
int
c
;
...
...
arch/sh/include/asm/atomic.h
浏览文件 @
f05d6717
...
...
@@ -19,8 +19,6 @@
#include <asm/cmpxchg.h>
#include <asm/barrier.h>
#define ATOMIC_INIT(i) { (i) }
#define atomic_read(v) READ_ONCE((v)->counter)
#define atomic_set(v,i) WRITE_ONCE((v)->counter, (i))
...
...
arch/sparc/include/asm/atomic_32.h
浏览文件 @
f05d6717
...
...
@@ -18,8 +18,6 @@
#include <asm/barrier.h>
#include <asm-generic/atomic64.h>
#define ATOMIC_INIT(i) { (i) }
int
atomic_add_return
(
int
,
atomic_t
*
);
int
atomic_fetch_add
(
int
,
atomic_t
*
);
int
atomic_fetch_and
(
int
,
atomic_t
*
);
...
...
arch/sparc/include/asm/atomic_64.h
浏览文件 @
f05d6717
...
...
@@ -12,7 +12,6 @@
#include <asm/cmpxchg.h>
#include <asm/barrier.h>
#define ATOMIC_INIT(i) { (i) }
#define ATOMIC64_INIT(i) { (i) }
#define atomic_read(v) READ_ONCE((v)->counter)
...
...
arch/x86/include/asm/atomic.h
浏览文件 @
f05d6717
...
...
@@ -14,8 +14,6 @@
* resource counting etc..
*/
#define ATOMIC_INIT(i) { (i) }
/**
* arch_atomic_read - read atomic variable
* @v: pointer of type atomic_t
...
...
arch/xtensa/include/asm/atomic.h
浏览文件 @
f05d6717
...
...
@@ -19,8 +19,6 @@
#include <asm/cmpxchg.h>
#include <asm/barrier.h>
#define ATOMIC_INIT(i) { (i) }
/*
* This Xtensa implementation assumes that the right mechanism
* for exclusion is for locking interrupts to level EXCM_LEVEL.
...
...
include/asm-generic/atomic.h
浏览文件 @
f05d6717
...
...
@@ -159,8 +159,6 @@ ATOMIC_OP(xor, ^)
* resource counting etc..
*/
#define ATOMIC_INIT(i) { (i) }
/**
* atomic_read - read atomic variable
* @v: pointer of type atomic_t
...
...
include/asm-generic/qspinlock.h
浏览文件 @
f05d6717
...
...
@@ -11,6 +11,7 @@
#define __ASM_GENERIC_QSPINLOCK_H
#include <asm-generic/qspinlock_types.h>
#include <linux/atomic.h>
/**
* queued_spin_is_locked - is the spinlock locked?
...
...
include/asm-generic/qspinlock_types.h
浏览文件 @
f05d6717
...
...
@@ -9,15 +9,7 @@
#ifndef __ASM_GENERIC_QSPINLOCK_TYPES_H
#define __ASM_GENERIC_QSPINLOCK_TYPES_H
/*
* Including atomic.h with PARAVIRT on will cause compilation errors because
* of recursive header file incluson via paravirt_types.h. So don't include
* it if PARAVIRT is on.
*/
#ifndef CONFIG_PARAVIRT
#include <linux/types.h>
#include <linux/atomic.h>
#endif
typedef
struct
qspinlock
{
union
{
...
...
include/linux/types.h
浏览文件 @
f05d6717
...
...
@@ -167,6 +167,8 @@ typedef struct {
int
counter
;
}
atomic_t
;
#define ATOMIC_INIT(i) { (i) }
#ifdef CONFIG_64BIT
typedef
struct
{
s64
counter
;
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录