Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
openeuler
raspberrypi-kernel
提交
f1b23714
R
raspberrypi-kernel
项目概览
openeuler
/
raspberrypi-kernel
通知
14
Star
1
Fork
0
代码
文件
提交
分支
Tags
贡献者
分支图
Diff
Issue
0
列表
看板
标记
里程碑
合并请求
0
Wiki
0
Wiki
分析
仓库
DevOps
项目成员
Pages
R
raspberrypi-kernel
项目概览
项目概览
详情
发布
仓库
仓库
文件
提交
分支
标签
贡献者
分支图
比较
Issue
0
Issue
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
Pages
分析
分析
仓库分析
DevOps
Wiki
0
Wiki
成员
成员
收起侧边栏
关闭侧边栏
动态
分支图
创建新Issue
提交
Issue看板
提交
f1b23714
编写于
12月 05, 2011
作者:
I
Ingo Molnar
浏览文件
操作
浏览文件
下载
差异文件
Merge branch 'ucode' of
git://git.kernel.org/pub/scm/linux/kernel/git/bp/bp
into x86/urgent
上级
1ef03890
ce37defc
变更
2
隐藏空白更改
内联
并排
Showing
2 changed file
with
27 addition
and
10 deletion
+27
-10
arch/x86/include/asm/msr.h
arch/x86/include/asm/msr.h
+8
-1
arch/x86/kernel/microcode_core.c
arch/x86/kernel/microcode_core.c
+19
-9
未找到文件。
arch/x86/include/asm/msr.h
浏览文件 @
f1b23714
...
@@ -169,7 +169,14 @@ static inline int wrmsr_safe(unsigned msr, unsigned low, unsigned high)
...
@@ -169,7 +169,14 @@ static inline int wrmsr_safe(unsigned msr, unsigned low, unsigned high)
return
native_write_msr_safe
(
msr
,
low
,
high
);
return
native_write_msr_safe
(
msr
,
low
,
high
);
}
}
/* rdmsr with exception handling */
/*
* rdmsr with exception handling.
*
* Please note that the exception handling works only after we've
* switched to the "smart" #GP handler in trap_init() which knows about
* exception tables - using this macro earlier than that causes machine
* hangs on boxes which do not implement the @msr in the first argument.
*/
#define rdmsr_safe(msr, p1, p2) \
#define rdmsr_safe(msr, p1, p2) \
({ \
({ \
int __err; \
int __err; \
...
...
arch/x86/kernel/microcode_core.c
浏览文件 @
f1b23714
...
@@ -256,7 +256,7 @@ static int __init microcode_dev_init(void)
...
@@ -256,7 +256,7 @@ static int __init microcode_dev_init(void)
return
0
;
return
0
;
}
}
static
void
microcode_dev_exit
(
void
)
static
void
__exit
microcode_dev_exit
(
void
)
{
{
misc_deregister
(
&
microcode_dev
);
misc_deregister
(
&
microcode_dev
);
}
}
...
@@ -519,10 +519,8 @@ static int __init microcode_init(void)
...
@@ -519,10 +519,8 @@ static int __init microcode_init(void)
microcode_pdev
=
platform_device_register_simple
(
"microcode"
,
-
1
,
microcode_pdev
=
platform_device_register_simple
(
"microcode"
,
-
1
,
NULL
,
0
);
NULL
,
0
);
if
(
IS_ERR
(
microcode_pdev
))
{
if
(
IS_ERR
(
microcode_pdev
))
microcode_dev_exit
();
return
PTR_ERR
(
microcode_pdev
);
return
PTR_ERR
(
microcode_pdev
);
}
get_online_cpus
();
get_online_cpus
();
mutex_lock
(
&
microcode_mutex
);
mutex_lock
(
&
microcode_mutex
);
...
@@ -532,14 +530,12 @@ static int __init microcode_init(void)
...
@@ -532,14 +530,12 @@ static int __init microcode_init(void)
mutex_unlock
(
&
microcode_mutex
);
mutex_unlock
(
&
microcode_mutex
);
put_online_cpus
();
put_online_cpus
();
if
(
error
)
{
if
(
error
)
platform_device_unregister
(
microcode_pdev
);
goto
out_pdev
;
return
error
;
}
error
=
microcode_dev_init
();
error
=
microcode_dev_init
();
if
(
error
)
if
(
error
)
return
erro
r
;
goto
out_sysdev_drive
r
;
register_syscore_ops
(
&
mc_syscore_ops
);
register_syscore_ops
(
&
mc_syscore_ops
);
register_hotcpu_notifier
(
&
mc_cpu_notifier
);
register_hotcpu_notifier
(
&
mc_cpu_notifier
);
...
@@ -548,6 +544,20 @@ static int __init microcode_init(void)
...
@@ -548,6 +544,20 @@ static int __init microcode_init(void)
" <tigran@aivazian.fsnet.co.uk>, Peter Oruba
\n
"
);
" <tigran@aivazian.fsnet.co.uk>, Peter Oruba
\n
"
);
return
0
;
return
0
;
out_sysdev_driver:
get_online_cpus
();
mutex_lock
(
&
microcode_mutex
);
sysdev_driver_unregister
(
&
cpu_sysdev_class
,
&
mc_sysdev_driver
);
mutex_unlock
(
&
microcode_mutex
);
put_online_cpus
();
out_pdev:
platform_device_unregister
(
microcode_pdev
);
return
error
;
}
}
module_init
(
microcode_init
);
module_init
(
microcode_init
);
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录