Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 116511
b: refs/heads/master
c: f0ed4e6
h: refs/heads/master
i:
  116509: 51f6e43
  116507: 4caf198
  116503: 73c9604
  116495: 0372974
  116479: c8afee4
v: v3
  • Loading branch information
Venki Pallipadi authored and Ingo Molnar committed Oct 16, 2008
1 parent b59e200 commit bfe4751
Show file tree
Hide file tree
Showing 2 changed files with 20 additions and 10 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: 2a554fb132cf804477087057b9b0ff2162984507
refs/heads/master: f0ed4e695faf6766927c8cfbda2bc7530c7210c2
28 changes: 19 additions & 9 deletions trunk/arch/x86/kernel/hpet.c
Original file line number Diff line number Diff line change
Expand Up @@ -126,6 +126,24 @@ EXPORT_SYMBOL_GPL(is_hpet_enabled);
* timer 0 and timer 1 in case of RTC emulation.
*/
#ifdef CONFIG_HPET
static void hpet_reserve_msi_timers(struct hpet_data *hd)
{
int i;

if (!hpet_devs)
return;

for (i = 0; i < hpet_num_timers; i++) {
struct hpet_dev *hdev = &hpet_devs[i];

if (!(hdev->flags & HPET_DEV_VALID))
continue;

hd->hd_irq[hdev->num] = hdev->irq;
hpet_reserve_timer(hd, hdev->num);
}
}

static void hpet_reserve_platform_timers(unsigned long id)
{
struct hpet __iomem *hpet = hpet_virt_address;
Expand Down Expand Up @@ -158,15 +176,7 @@ static void hpet_reserve_platform_timers(unsigned long id)
Tn_INT_ROUTE_CNF_MASK) >> Tn_INT_ROUTE_CNF_SHIFT;
}

for (i = 0; i < nrtimers; i++) {
struct hpet_dev *hdev = &hpet_devs[i];

if (!(hdev->flags & HPET_DEV_VALID))
continue;

hd.hd_irq[hdev->num] = hdev->irq;
hpet_reserve_timer(&hd, hdev->num);
}
hpet_reserve_msi_timers(&hd);

hpet_alloc(&hd);

Expand Down

0 comments on commit bfe4751

Please sign in to comment.