Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
openeuler
Kernel
提交
19c5787a
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看板
提交
19c5787a
编写于
11月 06, 2017
作者:
I
Ingo Molnar
浏览文件
操作
浏览文件
下载
差异文件
Merge branch 'x86/fpu' into x86/asm, to pick up fix
Signed-off-by:
N
Ingo Molnar
<
mingo@kernel.org
>
上级
1e4c4f61
1943dc07
变更
2
隐藏空白更改
内联
并排
Showing
2 changed file
with
11 addition
and
41 deletion
+11
-41
arch/x86/kernel/cpu/cpuid-deps.c
arch/x86/kernel/cpu/cpuid-deps.c
+11
-15
include/linux/bitops.h
include/linux/bitops.h
+0
-26
未找到文件。
arch/x86/kernel/cpu/cpuid-deps.c
浏览文件 @
19c5787a
...
...
@@ -62,23 +62,19 @@ const static struct cpuid_dep cpuid_deps[] = {
{}
};
static
inline
void
__clear_cpu_cap
(
struct
cpuinfo_x86
*
c
,
unsigned
int
bit
)
{
clear_bit32
(
bit
,
c
->
x86_capability
);
}
static
inline
void
__setup_clear_cpu_cap
(
unsigned
int
bit
)
{
clear_cpu_cap
(
&
boot_cpu_data
,
bit
);
set_bit32
(
bit
,
cpu_caps_cleared
);
}
static
inline
void
clear_feature
(
struct
cpuinfo_x86
*
c
,
unsigned
int
feature
)
{
if
(
!
c
)
__setup_clear_cpu_cap
(
feature
);
else
__clear_cpu_cap
(
c
,
feature
);
/*
* Note: This could use the non atomic __*_bit() variants, but the
* rest of the cpufeature code uses atomics as well, so keep it for
* consistency. Cleanup all of it separately.
*/
if
(
!
c
)
{
clear_cpu_cap
(
&
boot_cpu_data
,
feature
);
set_bit
(
feature
,
(
unsigned
long
*
)
cpu_caps_cleared
);
}
else
{
clear_bit
(
feature
,
(
unsigned
long
*
)
c
->
x86_capability
);
}
}
/* Take the capabilities and the BUG bits into account */
...
...
include/linux/bitops.h
浏览文件 @
19c5787a
...
...
@@ -227,32 +227,6 @@ static inline unsigned long __ffs64(u64 word)
return
__ffs
((
unsigned
long
)
word
);
}
/*
* clear_bit32 - Clear a bit in memory for u32 array
* @nr: Bit to clear
* @addr: u32 * address of bitmap
*
* Same as clear_bit, but avoids needing casts for u32 arrays.
*/
static
__always_inline
void
clear_bit32
(
long
nr
,
volatile
u32
*
addr
)
{
clear_bit
(
nr
,
(
volatile
unsigned
long
*
)
addr
);
}
/*
* set_bit32 - Set a bit in memory for u32 array
* @nr: Bit to clear
* @addr: u32 * address of bitmap
*
* Same as set_bit, but avoids needing casts for u32 arrays.
*/
static
__always_inline
void
set_bit32
(
long
nr
,
volatile
u32
*
addr
)
{
set_bit
(
nr
,
(
volatile
unsigned
long
*
)
addr
);
}
#ifdef __KERNEL__
#ifndef set_mask_bits
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录