aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/char
diff options
context:
space:
mode:
Diffstat (limited to 'drivers/char')
-rw-r--r--drivers/char/hpet.c6
1 files changed, 4 insertions, 2 deletions
diff --git a/drivers/char/hpet.c b/drivers/char/hpet.c
index 4bc1da4d4f80..2908a0eb63af 100644
--- a/drivers/char/hpet.c
+++ b/drivers/char/hpet.c
@@ -764,6 +764,7 @@ int hpet_alloc(struct hpet_data *hdp)
764 static struct hpets *last = NULL; 764 static struct hpets *last = NULL;
765 unsigned long period; 765 unsigned long period;
766 unsigned long long temp; 766 unsigned long long temp;
767 u32 remainder;
767 768
768 /* 769 /*
769 * hpet_alloc can be called by platform dependent code. 770 * hpet_alloc can be called by platform dependent code.
@@ -827,12 +828,13 @@ int hpet_alloc(struct hpet_data *hdp)
827 printk("%s %d", i > 0 ? "," : "", hdp->hd_irq[i]); 828 printk("%s %d", i > 0 ? "," : "", hdp->hd_irq[i]);
828 printk("\n"); 829 printk("\n");
829 830
831 temp = hpetp->hp_tick_freq;
832 remainder = do_div(temp, 1000000);
830 printk(KERN_INFO 833 printk(KERN_INFO
831 "hpet%u: %u comparators, %d-bit %u.%06u MHz counter\n", 834 "hpet%u: %u comparators, %d-bit %u.%06u MHz counter\n",
832 hpetp->hp_which, hpetp->hp_ntimer, 835 hpetp->hp_which, hpetp->hp_ntimer,
833 cap & HPET_COUNTER_SIZE_MASK ? 64 : 32, 836 cap & HPET_COUNTER_SIZE_MASK ? 64 : 32,
834 (unsigned) (hpetp->hp_tick_freq / 1000000), 837 (unsigned) temp, remainder);
835 (unsigned) (hpetp->hp_tick_freq % 1000000));
836 838
837 mcfg = readq(&hpet->hpet_config); 839 mcfg = readq(&hpet->hpet_config);
838 if ((mcfg & HPET_ENABLE_CNF_MASK) == 0) { 840 if ((mcfg & HPET_ENABLE_CNF_MASK) == 0) {