diff options
author | Zhang Rui <rui.zhang@intel.com> | 2019-03-18 10:37:44 -0400 |
---|---|---|
committer | Zhang Rui <rui.zhang@intel.com> | 2019-03-18 10:37:44 -0400 |
commit | 2d7c4e17811f766321b9c054609551fa40f0b445 (patch) | |
tree | 8ff9a27b5771a4a618192ee7f3aba4fee5db8213 | |
parent | fb4d83f293e072ad96848959d20664e2a9f2235b (diff) | |
parent | e925b5be5751f6a7286bbd9a4cbbc4ac90cc5fa6 (diff) |
Merge branches 'fixes' and 'thermal-intel' into next
-rw-r--r-- | drivers/thermal/intel/int340x_thermal/int3400_thermal.c | 21 | ||||
-rw-r--r-- | drivers/thermal/intel/intel_powerclamp.c | 2 |
2 files changed, 18 insertions, 5 deletions
diff --git a/drivers/thermal/intel/int340x_thermal/int3400_thermal.c b/drivers/thermal/intel/int340x_thermal/int3400_thermal.c index 61ca7ce3624e..5f3ed24e26ec 100644 --- a/drivers/thermal/intel/int340x_thermal/int3400_thermal.c +++ b/drivers/thermal/intel/int340x_thermal/int3400_thermal.c | |||
@@ -22,6 +22,13 @@ enum int3400_thermal_uuid { | |||
22 | INT3400_THERMAL_PASSIVE_1, | 22 | INT3400_THERMAL_PASSIVE_1, |
23 | INT3400_THERMAL_ACTIVE, | 23 | INT3400_THERMAL_ACTIVE, |
24 | INT3400_THERMAL_CRITICAL, | 24 | INT3400_THERMAL_CRITICAL, |
25 | INT3400_THERMAL_ADAPTIVE_PERFORMANCE, | ||
26 | INT3400_THERMAL_EMERGENCY_CALL_MODE, | ||
27 | INT3400_THERMAL_PASSIVE_2, | ||
28 | INT3400_THERMAL_POWER_BOSS, | ||
29 | INT3400_THERMAL_VIRTUAL_SENSOR, | ||
30 | INT3400_THERMAL_COOLING_MODE, | ||
31 | INT3400_THERMAL_HARDWARE_DUTY_CYCLING, | ||
25 | INT3400_THERMAL_MAXIMUM_UUID, | 32 | INT3400_THERMAL_MAXIMUM_UUID, |
26 | }; | 33 | }; |
27 | 34 | ||
@@ -29,6 +36,13 @@ static char *int3400_thermal_uuids[INT3400_THERMAL_MAXIMUM_UUID] = { | |||
29 | "42A441D6-AE6A-462b-A84B-4A8CE79027D3", | 36 | "42A441D6-AE6A-462b-A84B-4A8CE79027D3", |
30 | "3A95C389-E4B8-4629-A526-C52C88626BAE", | 37 | "3A95C389-E4B8-4629-A526-C52C88626BAE", |
31 | "97C68AE7-15FA-499c-B8C9-5DA81D606E0A", | 38 | "97C68AE7-15FA-499c-B8C9-5DA81D606E0A", |
39 | "63BE270F-1C11-48FD-A6F7-3AF253FF3E2D", | ||
40 | "5349962F-71E6-431D-9AE8-0A635B710AEE", | ||
41 | "9E04115A-AE87-4D1C-9500-0F3E340BFE75", | ||
42 | "F5A35014-C209-46A4-993A-EB56DE7530A1", | ||
43 | "6ED722A7-9240-48A5-B479-31EEF723D7CF", | ||
44 | "16CAF1B7-DD38-40ED-B1C1-1B8A1913D531", | ||
45 | "BE84BABF-C4D4-403D-B495-3128FD44dAC1", | ||
32 | }; | 46 | }; |
33 | 47 | ||
34 | struct int3400_thermal_priv { | 48 | struct int3400_thermal_priv { |
@@ -299,10 +313,9 @@ static int int3400_thermal_probe(struct platform_device *pdev) | |||
299 | 313 | ||
300 | platform_set_drvdata(pdev, priv); | 314 | platform_set_drvdata(pdev, priv); |
301 | 315 | ||
302 | if (priv->uuid_bitmap & 1 << INT3400_THERMAL_PASSIVE_1) { | 316 | int3400_thermal_ops.get_mode = int3400_thermal_get_mode; |
303 | int3400_thermal_ops.get_mode = int3400_thermal_get_mode; | 317 | int3400_thermal_ops.set_mode = int3400_thermal_set_mode; |
304 | int3400_thermal_ops.set_mode = int3400_thermal_set_mode; | 318 | |
305 | } | ||
306 | priv->thermal = thermal_zone_device_register("INT3400 Thermal", 0, 0, | 319 | priv->thermal = thermal_zone_device_register("INT3400 Thermal", 0, 0, |
307 | priv, &int3400_thermal_ops, | 320 | priv, &int3400_thermal_ops, |
308 | &int3400_thermal_params, 0, 0); | 321 | &int3400_thermal_params, 0, 0); |
diff --git a/drivers/thermal/intel/intel_powerclamp.c b/drivers/thermal/intel/intel_powerclamp.c index b12ecd436e23..ac7256b5f020 100644 --- a/drivers/thermal/intel/intel_powerclamp.c +++ b/drivers/thermal/intel/intel_powerclamp.c | |||
@@ -494,7 +494,7 @@ static void start_power_clamp_worker(unsigned long cpu) | |||
494 | struct powerclamp_worker_data *w_data = per_cpu_ptr(worker_data, cpu); | 494 | struct powerclamp_worker_data *w_data = per_cpu_ptr(worker_data, cpu); |
495 | struct kthread_worker *worker; | 495 | struct kthread_worker *worker; |
496 | 496 | ||
497 | worker = kthread_create_worker_on_cpu(cpu, 0, "kidle_inject/%ld", cpu); | 497 | worker = kthread_create_worker_on_cpu(cpu, 0, "kidle_inj/%ld", cpu); |
498 | if (IS_ERR(worker)) | 498 | if (IS_ERR(worker)) |
499 | return; | 499 | return; |
500 | 500 | ||