Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
openeuler
Kernel
提交
6df24c3e
K
Kernel
项目概览
openeuler
/
Kernel
12 个月 前同步成功
通知
5
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看板
体验新版 GitCode,发现更多精彩内容 >>
提交
6df24c3e
编写于
5月 07, 2019
作者:
Z
Zhang Rui
浏览文件
操作
浏览文件
下载
差异文件
Merge branches 'thermal-core', 'thermal-built-it' and 'thermal-intel' into next
上级
ff54bbd1
980d43f2
44c0c237
变更
13
隐藏空白更改
内联
并排
Showing
13 changed file
with
20 addition
and
51 deletion
+20
-51
arch/arm/configs/mini2440_defconfig
arch/arm/configs/mini2440_defconfig
+1
-1
arch/arm/configs/pxa_defconfig
arch/arm/configs/pxa_defconfig
+1
-1
arch/mips/configs/ip22_defconfig
arch/mips/configs/ip22_defconfig
+1
-1
arch/mips/configs/ip27_defconfig
arch/mips/configs/ip27_defconfig
+1
-1
arch/unicore32/configs/unicore32_defconfig
arch/unicore32/configs/unicore32_defconfig
+1
-1
drivers/hwmon/hwmon.c
drivers/hwmon/hwmon.c
+1
-3
drivers/net/ethernet/mellanox/mlxsw/Kconfig
drivers/net/ethernet/mellanox/mlxsw/Kconfig
+0
-1
drivers/thermal/Kconfig
drivers/thermal/Kconfig
+3
-5
drivers/thermal/intel/Kconfig
drivers/thermal/intel/Kconfig
+0
-1
drivers/thermal/intel/int340x_thermal/int3403_thermal.c
drivers/thermal/intel/int340x_thermal/int3403_thermal.c
+8
-8
drivers/thermal/intel/int340x_thermal/processor_thermal_device.c
.../thermal/intel/int340x_thermal/processor_thermal_device.c
+2
-11
drivers/thermal/qcom/Kconfig
drivers/thermal/qcom/Kconfig
+0
-1
drivers/thermal/thermal_core.c
drivers/thermal/thermal_core.c
+1
-16
未找到文件。
arch/arm/configs/mini2440_defconfig
浏览文件 @
6df24c3e
...
...
@@ -152,7 +152,7 @@ CONFIG_SPI_S3C24XX=y
CONFIG_SPI_SPIDEV=y
CONFIG_GPIO_SYSFS=y
CONFIG_SENSORS_LM75=y
CONFIG_THERMAL=
m
CONFIG_THERMAL=
y
CONFIG_WATCHDOG=y
CONFIG_S3C2410_WATCHDOG=y
CONFIG_FB=y
...
...
arch/arm/configs/pxa_defconfig
浏览文件 @
6df24c3e
...
...
@@ -387,7 +387,7 @@ CONFIG_SENSORS_LM75=m
CONFIG_SENSORS_LM90=m
CONFIG_SENSORS_LM95245=m
CONFIG_SENSORS_NTC_THERMISTOR=m
CONFIG_THERMAL=
m
CONFIG_THERMAL=
y
CONFIG_WATCHDOG=y
CONFIG_XILINX_WATCHDOG=m
CONFIG_SA1100_WATCHDOG=m
...
...
arch/mips/configs/ip22_defconfig
浏览文件 @
6df24c3e
...
...
@@ -228,7 +228,7 @@ CONFIG_SERIAL_IP22_ZILOG=m
# CONFIG_HW_RANDOM is not set
CONFIG_RAW_DRIVER=m
# CONFIG_HWMON is not set
CONFIG_THERMAL=
m
CONFIG_THERMAL=
y
CONFIG_WATCHDOG=y
CONFIG_INDYDOG=m
# CONFIG_VGA_CONSOLE is not set
...
...
arch/mips/configs/ip27_defconfig
浏览文件 @
6df24c3e
...
...
@@ -271,7 +271,7 @@ CONFIG_I2C_PARPORT_LIGHT=m
CONFIG_I2C_TAOS_EVM=m
CONFIG_I2C_STUB=m
# CONFIG_HWMON is not set
CONFIG_THERMAL=
m
CONFIG_THERMAL=
y
CONFIG_MFD_PCF50633=m
CONFIG_PCF50633_ADC=m
CONFIG_PCF50633_GPIO=m
...
...
arch/unicore32/configs/unicore32_defconfig
浏览文件 @
6df24c3e
...
...
@@ -119,7 +119,7 @@ CONFIG_I2C_PUV3=y
# Hardware Monitoring support
#CONFIG_SENSORS_LM75=m
# Generic Thermal sysfs driver
#CONFIG_THERMAL=
m
#CONFIG_THERMAL=
y
#CONFIG_THERMAL_HWMON=y
# Multimedia support
...
...
drivers/hwmon/hwmon.c
浏览文件 @
6df24c3e
...
...
@@ -118,9 +118,7 @@ static DEFINE_IDA(hwmon_ida);
* The complex conditional is necessary to avoid a cyclic dependency
* between hwmon and thermal_sys modules.
*/
#if IS_REACHABLE(CONFIG_THERMAL) && defined(CONFIG_THERMAL_OF) && \
(!defined(CONFIG_THERMAL_HWMON) || \
!(defined(MODULE) && IS_MODULE(CONFIG_THERMAL)))
#ifdef CONFIG_THERMAL_OF
static
int
hwmon_thermal_get_temp
(
void
*
data
,
int
*
temp
)
{
struct
hwmon_thermal_data
*
tdata
=
data
;
...
...
drivers/net/ethernet/mellanox/mlxsw/Kconfig
浏览文件 @
6df24c3e
...
...
@@ -21,7 +21,6 @@ config MLXSW_CORE_HWMON
config MLXSW_CORE_THERMAL
bool "Thermal zone support for Mellanox Technologies Switch ASICs"
depends on MLXSW_CORE && THERMAL
depends on !(MLXSW_CORE=y && THERMAL=m)
default y
---help---
Say Y here if you want to automatically control fans speed according
...
...
drivers/thermal/Kconfig
浏览文件 @
6df24c3e
...
...
@@ -3,7 +3,7 @@
#
menuconfig THERMAL
tristate
"Generic Thermal sysfs driver"
bool
"Generic Thermal sysfs driver"
help
Generic Thermal Sysfs driver offers a generic mechanism for
thermal management. Usually it's made up of one or more thermal
...
...
@@ -11,7 +11,7 @@ menuconfig THERMAL
Each thermal zone contains its own temperature, trip points,
cooling devices.
All platforms with ACPI thermal support can use this driver.
If you want this support, you should say Y
or M
here.
If you want this support, you should say Y here.
if THERMAL
...
...
@@ -24,7 +24,6 @@ config THERMAL_STATISTICS
config THERMAL_EMERGENCY_POWEROFF_DELAY_MS
int "Emergency poweroff delay in milli-seconds"
depends on THERMAL
default 0
help
Thermal subsystem will issue a graceful shutdown when
...
...
@@ -149,10 +148,9 @@ config THERMAL_GOV_POWER_ALLOCATOR
allocating and limiting power to devices.
config CPU_THERMAL
bool "
g
eneric cpu cooling support"
bool "
G
eneric cpu cooling support"
depends on CPU_FREQ
depends on THERMAL_OF
depends on THERMAL=y
help
This implements the generic cpu cooling mechanism through frequency
reduction. An ACPI version of this already exists
...
...
drivers/thermal/intel/Kconfig
浏览文件 @
6df24c3e
config INTEL_POWERCLAMP
tristate "Intel PowerClamp idle injection driver"
depends on THERMAL
depends on X86
depends on CPU_SUP_INTEL
help
...
...
drivers/thermal/intel/int340x_thermal/int3403_thermal.c
浏览文件 @
6df24c3e
...
...
@@ -220,6 +220,7 @@ static int int3403_add(struct platform_device *pdev)
{
struct
int3403_priv
*
priv
;
int
result
=
0
;
unsigned
long
long
tmp
;
acpi_status
status
;
priv
=
devm_kzalloc
(
&
pdev
->
dev
,
sizeof
(
struct
int3403_priv
),
...
...
@@ -234,19 +235,18 @@ static int int3403_add(struct platform_device *pdev)
goto
err
;
}
status
=
acpi_evaluate_integer
(
priv
->
adev
->
handle
,
"PTYP"
,
NULL
,
&
priv
->
type
);
if
(
ACPI_FAILURE
(
status
))
{
unsigned
long
long
tmp
;
status
=
acpi_evaluate_integer
(
priv
->
adev
->
handle
,
"_TMP"
,
NULL
,
&
tmp
);
status
=
acpi_evaluate_integer
(
priv
->
adev
->
handle
,
"_TMP"
,
NULL
,
&
tmp
);
if
(
ACPI_FAILURE
(
status
))
{
status
=
acpi_evaluate_integer
(
priv
->
adev
->
handle
,
"PTYP"
,
NULL
,
&
priv
->
type
);
if
(
ACPI_FAILURE
(
status
))
{
result
=
-
EINVAL
;
goto
err
;
}
else
{
priv
->
type
=
INT3403_TYPE_SENSOR
;
}
}
else
{
priv
->
type
=
INT3403_TYPE_SENSOR
;
}
platform_set_drvdata
(
pdev
,
priv
);
...
...
drivers/thermal/intel/int340x_thermal/processor_thermal_device.c
浏览文件 @
6df24c3e
...
...
@@ -81,22 +81,13 @@ static ssize_t power_limit_##index##_##suffix##_show(struct device *dev, \
struct device_attribute *attr, \
char *buf) \
{ \
struct pci_dev *pci_dev; \
struct platform_device *pdev; \
struct proc_thermal_device *proc_dev; \
struct proc_thermal_device *proc_dev = dev_get_drvdata(dev); \
\
if (proc_thermal_emum_mode == PROC_THERMAL_NONE) { \
dev_warn(dev, "Attempted to get power limit before device was initialized!\n"); \
return 0; \
} \
\
if (proc_thermal_emum_mode == PROC_THERMAL_PLATFORM_DEV) { \
pdev = to_platform_device(dev); \
proc_dev = platform_get_drvdata(pdev); \
} else { \
pci_dev = to_pci_dev(dev); \
proc_dev = pci_get_drvdata(pci_dev); \
} \
return sprintf(buf, "%lu\n",\
(unsigned long)proc_dev->power_limits[index].suffix * 1000); \
}
...
...
@@ -274,7 +265,7 @@ static void proc_thermal_notify(acpi_handle handle, u32 event, void *data)
THERMAL_DEVICE_POWER_CAPABILITY_CHANGED
);
break
;
default:
dev_
err
(
proc_priv
->
dev
,
"Unsupported event [0x%x]
\n
"
,
event
);
dev_
dbg
(
proc_priv
->
dev
,
"Unsupported event [0x%x]
\n
"
,
event
);
break
;
}
}
...
...
drivers/thermal/qcom/Kconfig
浏览文件 @
6df24c3e
config QCOM_TSENS
tristate "Qualcomm TSENS Temperature Alarm"
depends on THERMAL
depends on QCOM_QFPROM
depends on ARCH_QCOM || COMPILE_TEST
help
...
...
drivers/thermal/thermal_core.c
浏览文件 @
6df24c3e
...
...
@@ -266,7 +266,7 @@ static int __init thermal_register_governors(void)
return
thermal_gov_power_allocator_register
();
}
static
void
thermal_unregister_governors
(
void
)
static
void
__init
thermal_unregister_governors
(
void
)
{
thermal_gov_step_wise_unregister
();
thermal_gov_fair_share_unregister
();
...
...
@@ -1571,19 +1571,4 @@ static int __init thermal_init(void)
mutex_destroy
(
&
poweroff_lock
);
return
result
;
}
static
void
__exit
thermal_exit
(
void
)
{
unregister_pm_notifier
(
&
thermal_pm_nb
);
of_thermal_destroy_zones
();
genetlink_exit
();
class_unregister
(
&
thermal_class
);
thermal_unregister_governors
();
ida_destroy
(
&
thermal_tz_ida
);
ida_destroy
(
&
thermal_cdev_ida
);
mutex_destroy
(
&
thermal_list_lock
);
mutex_destroy
(
&
thermal_governor_lock
);
}
fs_initcall
(
thermal_init
);
module_exit
(
thermal_exit
);
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录