Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 99524
b: refs/heads/master
c: 7c4728f
h: refs/heads/master
v: v3
  • Loading branch information
Thomas Gleixner authored and Ingo Molnar committed May 12, 2008
1 parent 8ba3205 commit 042f7a4
Show file tree
Hide file tree
Showing 2 changed files with 27 additions and 4 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: e8aa4667baf74dfd85fbaab86861465acb811085
refs/heads/master: 7c4728f4a865067d96fb84f1d9c65e0ccd1f355d
29 changes: 26 additions & 3 deletions trunk/arch/x86/kernel/quirks.c
Original file line number Diff line number Diff line change
Expand Up @@ -175,6 +175,12 @@ DECLARE_PCI_FIXUP_HEADER(PCI_VENDOR_ID_INTEL, PCI_DEVICE_ID_INTEL_ICH9_7,

static struct pci_dev *cached_dev;

static void hpet_print_force_info(void)
{
printk(KERN_INFO "HPET not enabled in BIOS. "
"You might try hpet=force boot option\n");
}

static void old_ich_force_hpet_resume(void)
{
u32 val;
Expand Down Expand Up @@ -254,6 +260,8 @@ static void old_ich_force_enable_hpet_user(struct pci_dev *dev)
{
if (hpet_force_user)
old_ich_force_enable_hpet(dev);
else
hpet_print_force_info();
}

DECLARE_PCI_FIXUP_HEADER(PCI_VENDOR_ID_INTEL, PCI_DEVICE_ID_INTEL_82801CA_0,
Expand Down Expand Up @@ -291,8 +299,13 @@ static void vt8237_force_enable_hpet(struct pci_dev *dev)
{
u32 uninitialized_var(val);

if (!hpet_force_user || hpet_address || force_hpet_address)
if (hpet_address || force_hpet_address)
return;

if (!hpet_force_user) {
hpet_print_force_info();
return;
}

pci_read_config_dword(dev, 0x68, &val);
/*
Expand Down Expand Up @@ -341,8 +354,13 @@ static void ati_force_enable_hpet(struct pci_dev *dev)
{
u32 uninitialized_var(val);

if (!hpet_force_user || hpet_address || force_hpet_address)
if (hpet_address || force_hpet_address)
return;

if (!hpet_force_user) {
hpet_print_force_info();
return;
}

pci_write_config_dword(dev, 0x14, 0xfed00000);
pci_read_config_dword(dev, 0x14, &val);
Expand All @@ -369,8 +387,13 @@ static void nvidia_force_enable_hpet(struct pci_dev *dev)
{
u32 uninitialized_var(val);

if (!hpet_force_user || hpet_address || force_hpet_address)
if (hpet_address || force_hpet_address)
return;

if (!hpet_force_user) {
hpet_print_force_info();
return;
}

pci_write_config_dword(dev, 0x44, 0xfed00001);
pci_read_config_dword(dev, 0x44, &val);
Expand Down

0 comments on commit 042f7a4

Please sign in to comment.