Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 179650
b: refs/heads/master
c: d22edd2
h: refs/heads/master
v: v3
  • Loading branch information
Len Brown committed Jan 20, 2010
1 parent a7eb336 commit ec1238d
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 19 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: a6d72c189f6c4292ba1a323e8af24083790529f8
refs/heads/master: d22edd293ff3f1e2d252f164fe2cf744620cb660
22 changes: 4 additions & 18 deletions trunk/drivers/acpi/processor_idle.c
Original file line number Diff line number Diff line change
Expand Up @@ -516,23 +516,6 @@ static int acpi_processor_get_power_info_cst(struct acpi_processor *pr)
return status;
}

static void acpi_processor_power_verify_c2(struct acpi_processor_cx *cx)
{

if (!cx->address)
return;

/*
* Otherwise we've met all of our C2 requirements.
* Normalize the C2 latency to expidite policy
*/
cx->valid = 1;

cx->latency_ticks = cx->latency;

return;
}

static void acpi_processor_power_verify_c3(struct acpi_processor *pr,
struct acpi_processor_cx *cx)
{
Expand Down Expand Up @@ -631,7 +614,10 @@ static int acpi_processor_power_verify(struct acpi_processor *pr)
break;

case ACPI_STATE_C2:
acpi_processor_power_verify_c2(cx);
if (!cx->address)
break;
cx->valid = 1;
cx->latency_ticks = cx->latency; /* Normalize latency */
break;

case ACPI_STATE_C3:
Expand Down

0 comments on commit ec1238d

Please sign in to comment.