Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
openanolis
cloud-kernel
提交
d0302bc6
cloud-kernel
项目概览
openanolis
/
cloud-kernel
1 年多 前同步成功
通知
160
Star
36
Fork
7
代码
文件
提交
分支
Tags
贡献者
分支图
Diff
Issue
10
列表
看板
标记
里程碑
合并请求
2
Wiki
0
Wiki
分析
仓库
DevOps
项目成员
Pages
cloud-kernel
项目概览
项目概览
详情
发布
仓库
仓库
文件
提交
分支
标签
贡献者
分支图
比较
Issue
10
Issue
10
列表
看板
标记
里程碑
合并请求
2
合并请求
2
Pages
分析
分析
仓库分析
DevOps
Wiki
0
Wiki
成员
成员
收起侧边栏
关闭侧边栏
动态
分支图
创建新Issue
提交
Issue看板
提交
d0302bc6
编写于
1月 09, 2009
作者:
L
Len Brown
浏览文件
操作
浏览文件
下载
差异文件
Merge branch 'misc' into release
Conflicts: include/acpi/acpixf.h Signed-off-by:
N
Len Brown
<
len.brown@intel.com
>
上级
106ad8d6
237889bf
变更
9
隐藏空白更改
内联
并排
Showing
9 changed file
with
27 addition
and
8 deletion
+27
-8
Documentation/kernel-parameters.txt
Documentation/kernel-parameters.txt
+1
-0
arch/ia64/kernel/acpi.c
arch/ia64/kernel/acpi.c
+1
-0
arch/x86/kernel/acpi/boot.c
arch/x86/kernel/acpi/boot.c
+5
-1
arch/x86/kernel/acpi/cstate.c
arch/x86/kernel/acpi/cstate.c
+3
-1
drivers/acpi/acpica/tbutils.c
drivers/acpi/acpica/tbutils.c
+2
-1
drivers/acpi/pci_link.c
drivers/acpi/pci_link.c
+0
-4
drivers/acpi/video.c
drivers/acpi/video.c
+5
-0
drivers/cpuidle/governors/menu.c
drivers/cpuidle/governors/menu.c
+9
-1
include/acpi/acpixf.h
include/acpi/acpixf.h
+1
-0
未找到文件。
Documentation/kernel-parameters.txt
浏览文件 @
d0302bc6
...
...
@@ -139,6 +139,7 @@ and is between 256 and 4096 characters. It is defined in the file
ht -- run only enough ACPI to enable Hyper Threading
strict -- Be less tolerant of platforms that are not
strictly ACPI specification compliant.
rsdt -- prefer RSDT over (default) XSDT
See also Documentation/power/pm.txt, pci=noacpi
...
...
arch/ia64/kernel/acpi.c
浏览文件 @
d0302bc6
...
...
@@ -65,6 +65,7 @@ EXPORT_SYMBOL(pm_idle);
void
(
*
pm_power_off
)
(
void
);
EXPORT_SYMBOL
(
pm_power_off
);
u32
acpi_rsdt_forced
;
unsigned
int
acpi_cpei_override
;
unsigned
int
acpi_cpei_phys_cpuid
;
...
...
arch/x86/kernel/acpi/boot.c
浏览文件 @
d0302bc6
...
...
@@ -47,7 +47,7 @@
#endif
static
int
__initdata
acpi_force
=
0
;
u32
acpi_rsdt_forced
;
#ifdef CONFIG_ACPI
int
acpi_disabled
=
0
;
#else
...
...
@@ -1794,6 +1794,10 @@ static int __init parse_acpi(char *arg)
disable_acpi
();
acpi_ht
=
1
;
}
/* acpi=rsdt use RSDT instead of XSDT */
else
if
(
strcmp
(
arg
,
"rsdt"
)
==
0
)
{
acpi_rsdt_forced
=
1
;
}
/* "acpi=noirq" disables ACPI interrupt routing */
else
if
(
strcmp
(
arg
,
"noirq"
)
==
0
)
{
acpi_noirq_set
();
...
...
arch/x86/kernel/acpi/cstate.c
浏览文件 @
d0302bc6
...
...
@@ -56,6 +56,7 @@ static struct cstate_entry *cpu_cstate_entry; /* per CPU ptr */
static
short
mwait_supported
[
ACPI_PROCESSOR_MAX_POWER
];
#define MWAIT_SUBSTATE_MASK (0xf)
#define MWAIT_CSTATE_MASK (0xf)
#define MWAIT_SUBSTATE_SIZE (4)
#define CPUID_MWAIT_LEAF (5)
...
...
@@ -98,7 +99,8 @@ int acpi_processor_ffh_cstate_probe(unsigned int cpu,
cpuid
(
CPUID_MWAIT_LEAF
,
&
eax
,
&
ebx
,
&
ecx
,
&
edx
);
/* Check whether this particular cx_type (in CST) is supported or not */
cstate_type
=
(
cx
->
address
>>
MWAIT_SUBSTATE_SIZE
)
+
1
;
cstate_type
=
((
cx
->
address
>>
MWAIT_SUBSTATE_SIZE
)
&
MWAIT_CSTATE_MASK
)
+
1
;
edx_part
=
edx
>>
(
cstate_type
*
MWAIT_SUBSTATE_SIZE
);
num_cstate_subtype
=
edx_part
&
MWAIT_SUBSTATE_MASK
;
...
...
drivers/acpi/acpica/tbutils.c
浏览文件 @
d0302bc6
...
...
@@ -445,7 +445,8 @@ acpi_tb_parse_root_table(acpi_physical_address rsdp_address, u8 flags)
/* Differentiate between RSDT and XSDT root tables */
if
(
rsdp
->
revision
>
1
&&
rsdp
->
xsdt_physical_address
)
{
if
(
rsdp
->
revision
>
1
&&
rsdp
->
xsdt_physical_address
&&
!
acpi_rsdt_forced
)
{
/*
* Root table is an XSDT (64-bit physical addresses). We must use the
* XSDT if the revision is > 1 and the XSDT pointer is present, as per
...
...
drivers/acpi/pci_link.c
浏览文件 @
d0302bc6
...
...
@@ -796,10 +796,6 @@ static int irqrouter_resume(struct sys_device *dev)
struct
list_head
*
node
=
NULL
;
struct
acpi_pci_link
*
link
=
NULL
;
/* Make sure SCI is enabled again (Apple firmware bug?) */
acpi_set_register
(
ACPI_BITREG_SCI_ENABLE
,
1
);
list_for_each
(
node
,
&
acpi_link
.
entries
)
{
link
=
list_entry
(
node
,
struct
acpi_pci_link
,
node
);
if
(
!
link
)
{
...
...
drivers/acpi/video.c
浏览文件 @
d0302bc6
...
...
@@ -482,6 +482,7 @@ acpi_video_device_lcd_set_level(struct acpi_video_device *device, int level)
int
status
=
AE_OK
;
union
acpi_object
arg0
=
{
ACPI_TYPE_INTEGER
};
struct
acpi_object_list
args
=
{
1
,
&
arg0
};
int
state
;
arg0
.
integer
.
value
=
level
;
...
...
@@ -490,6 +491,10 @@ acpi_video_device_lcd_set_level(struct acpi_video_device *device, int level)
status
=
acpi_evaluate_object
(
device
->
dev
->
handle
,
"_BCM"
,
&
args
,
NULL
);
device
->
brightness
->
curr
=
level
;
for
(
state
=
2
;
state
<
device
->
brightness
->
count
;
state
++
)
if
(
level
==
device
->
brightness
->
levels
[
state
])
device
->
backlight
->
props
.
brightness
=
state
-
2
;
return
status
;
}
...
...
drivers/cpuidle/governors/menu.c
浏览文件 @
d0302bc6
...
...
@@ -15,12 +15,14 @@
#include <linux/tick.h>
#define BREAK_FUZZ 4
/* 4 us */
#define PRED_HISTORY_PCT 50
struct
menu_device
{
int
last_state_idx
;
unsigned
int
expected_us
;
unsigned
int
predicted_us
;
unsigned
int
current_predicted_us
;
unsigned
int
last_measured_us
;
unsigned
int
elapsed_us
;
};
...
...
@@ -47,6 +49,12 @@ static int menu_select(struct cpuidle_device *dev)
data
->
expected_us
=
(
u32
)
ktime_to_ns
(
tick_nohz_get_sleep_length
())
/
1000
;
/* Recalculate predicted_us based on prediction_history_pct */
data
->
predicted_us
*=
PRED_HISTORY_PCT
;
data
->
predicted_us
+=
(
100
-
PRED_HISTORY_PCT
)
*
data
->
current_predicted_us
;
data
->
predicted_us
/=
100
;
/* find the deepest idle state that satisfies our constraints */
for
(
i
=
CPUIDLE_DRIVER_STATE_START
+
1
;
i
<
dev
->
state_count
;
i
++
)
{
struct
cpuidle_state
*
s
=
&
dev
->
states
[
i
];
...
...
@@ -97,7 +105,7 @@ static void menu_reflect(struct cpuidle_device *dev)
measured_us
=
-
1
;
/* Predict time until next break event */
data
->
predicted_us
=
max
(
measured_us
,
data
->
last_measured_us
);
data
->
current_
predicted_us
=
max
(
measured_us
,
data
->
last_measured_us
);
if
(
last_idle_us
+
BREAK_FUZZ
<
data
->
expected_us
-
target
->
exit_latency
)
{
...
...
include/acpi/acpixf.h
浏览文件 @
d0302bc6
...
...
@@ -70,6 +70,7 @@ extern u32 acpi_gbl_trace_flags;
extern
u32
acpi_current_gpe_count
;
extern
struct
acpi_table_fadt
acpi_gbl_FADT
;
extern
u32
acpi_rsdt_forced
;
/*
* Global interfaces
*/
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录