Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 1748
b: refs/heads/master
c: 1174631
h: refs/heads/master
v: v3
  • Loading branch information
Dave Jones committed Jun 1, 2005
1 parent d54e0a2 commit eef9026
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 3 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: 3be6a48f3c8df1b2fbbe57face95a03d167bda1b
refs/heads/master: 1174631418fbb2c0c6946081b0b7d391f5d92861
11 changes: 9 additions & 2 deletions trunk/arch/i386/kernel/cpu/cpufreq/longhaul.c
Original file line number Diff line number Diff line change
Expand Up @@ -120,9 +120,10 @@ static int longhaul_get_cpu_mult(void)
static void do_powersaver(union msr_longhaul *longhaul,
unsigned int clock_ratio_index)
{
int version;
unsigned long flags;
struct pci_dev *dev;
unsigned long flags;
unsigned int tmp_mask;
int version;
int i;
u16 pci_cmd;
u16 cmd_state[64];
Expand Down Expand Up @@ -163,6 +164,10 @@ static void do_powersaver(union msr_longhaul *longhaul,
}
} while (dev != NULL);

tmp_mask=inb(0x21); /* works on C3. save mask. */
outb(0xFE,0x21); /* TMR0 only */
outb(0xFF,0x80); /* delay */

local_irq_enable();

__hlt();
Expand All @@ -171,6 +176,8 @@ static void do_powersaver(union msr_longhaul *longhaul,

local_irq_disable();

outb(tmp_mask,0x21); /* restore mask */

/* restore pci bus master state for all devices */
dev = NULL;
i = 0;
Expand Down

0 comments on commit eef9026

Please sign in to comment.