Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 298045
b: refs/heads/master
c: c264c65
h: refs/heads/master
i:
  298043: c55d9ea
v: v3
  • Loading branch information
Andi Kleen authored and Len Brown committed Mar 30, 2012
1 parent 3042472 commit 9901a17
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 12 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: 9bcb8118965ab4631a65ee0726e6518f75cda6c5
refs/heads/master: c264c651fd318274ffe27219947f17f24f07c073
13 changes: 2 additions & 11 deletions trunk/drivers/platform/x86/intel_ips.c
Original file line number Diff line number Diff line change
Expand Up @@ -609,25 +609,16 @@ static bool mcp_exceeded(struct ips_driver *ips)
bool ret = false;
u32 temp_limit;
u32 avg_power;
const char *msg = "MCP limit exceeded: ";

spin_lock_irqsave(&ips->turbo_status_lock, flags);

temp_limit = ips->mcp_temp_limit * 100;
if (ips->mcp_avg_temp > temp_limit) {
dev_info(&ips->dev->dev,
"%sAvg temp %u, limit %u\n", msg, ips->mcp_avg_temp,
temp_limit);
if (ips->mcp_avg_temp > temp_limit)
ret = true;
}

avg_power = ips->cpu_avg_power + ips->mch_avg_power;
if (avg_power > ips->mcp_power_limit) {
dev_info(&ips->dev->dev,
"%sAvg power %u, limit %u\n", msg, avg_power,
ips->mcp_power_limit);
if (avg_power > ips->mcp_power_limit)
ret = true;
}

spin_unlock_irqrestore(&ips->turbo_status_lock, flags);

Expand Down

0 comments on commit 9901a17

Please sign in to comment.