Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 113615
b: refs/heads/master
c: f92a789
h: refs/heads/master
i:
  113613: e4361d7
  113611: cb7a970
  113607: d70ecdf
  113599: d366e2e
v: v3
  • Loading branch information
David Brownell authored and Ingo Molnar committed Jul 31, 2008
1 parent 16379e4 commit f11c1a3
Show file tree
Hide file tree
Showing 2 changed files with 5 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: 64a76f667d987a559ad0726b4692c987800b22bc
refs/heads/master: f92a789d259eb95afe7498ff5938fe2a93d39c82
6 changes: 4 additions & 2 deletions trunk/drivers/char/hpet.c
Original file line number Diff line number Diff line change
Expand Up @@ -764,6 +764,7 @@ int hpet_alloc(struct hpet_data *hdp)
static struct hpets *last = NULL;
unsigned long period;
unsigned long long temp;
u32 remainder;

/*
* hpet_alloc can be called by platform dependent code.
Expand Down Expand Up @@ -827,12 +828,13 @@ int hpet_alloc(struct hpet_data *hdp)
printk("%s %d", i > 0 ? "," : "", hdp->hd_irq[i]);
printk("\n");

temp = hpetp->hp_tick_freq;
remainder = do_div(temp, 1000000);
printk(KERN_INFO
"hpet%u: %u comparators, %d-bit %u.%06u MHz counter\n",
hpetp->hp_which, hpetp->hp_ntimer,
cap & HPET_COUNTER_SIZE_MASK ? 64 : 32,
(unsigned) (hpetp->hp_tick_freq / 1000000),
(unsigned) (hpetp->hp_tick_freq % 1000000));
(unsigned) temp, remainder);

mcfg = readq(&hpet->hpet_config);
if ((mcfg & HPET_ENABLE_CNF_MASK) == 0) {
Expand Down

0 comments on commit f11c1a3

Please sign in to comment.