Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 11913
b: refs/heads/master
c: 757c472
h: refs/heads/master
i:
  11911: ff260eb
v: v3
  • Loading branch information
Randy Dunlap authored and Linus Torvalds committed Oct 31, 2005
1 parent fbd2781 commit c62a14b
Show file tree
Hide file tree
Showing 2 changed files with 18 additions and 1 deletion.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: 318db8f03bc06e6de98e98a568b6b2fa64233b87
refs/heads/master: 757c4724099a31a61754ea5202802eaa1def851c
17 changes: 17 additions & 0 deletions trunk/drivers/char/hpet.c
Original file line number Diff line number Diff line change
Expand Up @@ -49,6 +49,8 @@
#define HPET_USER_FREQ (64)
#define HPET_DRIFT (500)

#define HPET_RANGE_SIZE 1024 /* from HPET spec */

static u32 hpet_nhpet, hpet_max_freq = HPET_USER_FREQ;

/* A lock for concurrent access by app and isr hpet activity. */
Expand Down Expand Up @@ -922,6 +924,21 @@ static acpi_status hpet_resources(struct acpi_resource *res, void *data)
for (hpetp = hpets; hpetp; hpetp = hpetp->hp_next)
if (hpetp->hp_hpet == hdp->hd_address)
return -EBUSY;
} else if (res->id == ACPI_RSTYPE_FIXED_MEM32) {
struct acpi_resource_fixed_mem32 *fixmem32;

fixmem32 = &res->data.fixed_memory32;
if (!fixmem32)
return -EINVAL;

hdp->hd_phys_address = fixmem32->range_base_address;
hdp->hd_address = ioremap(fixmem32->range_base_address,
HPET_RANGE_SIZE);

for (hpetp = hpets; hpetp; hpetp = hpetp->hp_next)
if (hpetp->hp_hpet == hdp->hd_address) {
return -EBUSY;
}
} else if (res->id == ACPI_RSTYPE_EXT_IRQ) {
struct acpi_resource_ext_irq *irqp;
int i;
Expand Down

0 comments on commit c62a14b

Please sign in to comment.