diff options
author | Linus Torvalds <torvalds@linux-foundation.org> | 2012-03-30 19:45:38 -0400 |
---|---|---|
committer | Linus Torvalds <torvalds@linux-foundation.org> | 2012-03-30 19:45:39 -0400 |
commit | a335750b9a039a9d4cd727cdccacfb90fd63c4e8 (patch) | |
tree | 8f3198984fb75fe494e771d9431f6799228623c5 /drivers/platform | |
parent | 10f3cb41d48ab30f5c754b30eea557371892b4c2 (diff) | |
parent | d326f44e5f2204c7a24db69bfc6dd3fe5f86182b (diff) |
Merge branch 'release' of git://git.kernel.org/pub/scm/linux/kernel/git/lenb/linux
Pull ACPI & Power Management changes from Len Brown:
- ACPI 5.0 after-ripples, ACPICA/Linux divergence cleanup
- cpuidle evolving, more ARM use
- thermal sub-system evolving, ditto
- assorted other PM bits
Fix up conflicts in various cpuidle implementations due to ARM cpuidle
cleanups (ARM at91 self-refresh and cpu idle code rewritten into
"standby" in asm conflicting with the consolidation of cpuidle time
keeping), trivial SH include file context conflict and RCU tracing fixes
in generic code.
* 'release' of git://git.kernel.org/pub/scm/linux/kernel/git/lenb/linux: (77 commits)
ACPI throttling: fix endian bug in acpi_read_throttling_status()
Disable MCP limit exceeded messages from Intel IPS driver
ACPI video: Don't start video device until its associated input device has been allocated
ACPI video: Harden video bus adding.
ACPI: Add support for exposing BGRT data
ACPI: export acpi_kobj
ACPI: Fix logic for removing mappings in 'acpi_unmap'
CPER failed to handle generic error records with multiple sections
ACPI: Clean redundant codes in scan.c
ACPI: Fix unprotected smp_processor_id() in acpi_processor_cst_has_changed()
ACPI: consistently use should_use_kmap()
PNPACPI: Fix device ref leaking in acpi_pnp_match
ACPI: Fix use-after-free in acpi_map_lsapic
ACPI: processor_driver: add missing kfree
ACPI, APEI: Fix incorrect APEI register bit width check and usage
Update documentation for parameter *notrigger* in einj.txt
ACPI, APEI, EINJ, new parameter to control trigger action
ACPI, APEI, EINJ, limit the range of einj_param
ACPI, APEI, Fix ERST header length check
cpuidle: power_usage should be declared signed integer
...
Diffstat (limited to 'drivers/platform')
-rw-r--r-- | drivers/platform/x86/intel_ips.c | 13 |
1 files changed, 2 insertions, 11 deletions
diff --git a/drivers/platform/x86/intel_ips.c b/drivers/platform/x86/intel_ips.c index 88a98cff5a44..f7ba316e0ed6 100644 --- a/drivers/platform/x86/intel_ips.c +++ b/drivers/platform/x86/intel_ips.c | |||
@@ -609,25 +609,16 @@ static bool mcp_exceeded(struct ips_driver *ips) | |||
609 | bool ret = false; | 609 | bool ret = false; |
610 | u32 temp_limit; | 610 | u32 temp_limit; |
611 | u32 avg_power; | 611 | u32 avg_power; |
612 | const char *msg = "MCP limit exceeded: "; | ||
613 | 612 | ||
614 | spin_lock_irqsave(&ips->turbo_status_lock, flags); | 613 | spin_lock_irqsave(&ips->turbo_status_lock, flags); |
615 | 614 | ||
616 | temp_limit = ips->mcp_temp_limit * 100; | 615 | temp_limit = ips->mcp_temp_limit * 100; |
617 | if (ips->mcp_avg_temp > temp_limit) { | 616 | if (ips->mcp_avg_temp > temp_limit) |
618 | dev_info(&ips->dev->dev, | ||
619 | "%sAvg temp %u, limit %u\n", msg, ips->mcp_avg_temp, | ||
620 | temp_limit); | ||
621 | ret = true; | 617 | ret = true; |
622 | } | ||
623 | 618 | ||
624 | avg_power = ips->cpu_avg_power + ips->mch_avg_power; | 619 | avg_power = ips->cpu_avg_power + ips->mch_avg_power; |
625 | if (avg_power > ips->mcp_power_limit) { | 620 | if (avg_power > ips->mcp_power_limit) |
626 | dev_info(&ips->dev->dev, | ||
627 | "%sAvg power %u, limit %u\n", msg, avg_power, | ||
628 | ips->mcp_power_limit); | ||
629 | ret = true; | 621 | ret = true; |
630 | } | ||
631 | 622 | ||
632 | spin_unlock_irqrestore(&ips->turbo_status_lock, flags); | 623 | spin_unlock_irqrestore(&ips->turbo_status_lock, flags); |
633 | 624 | ||