Source-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[src/trunk]: src/sys/arch/arm/omap calc_timer_factors: use supplied ints_per_...



details:   https://anonhg.NetBSD.org/src/rev/2684f6e8b0f4
branches:  trunk
changeset: 784063:2684f6e8b0f4
user:      jmcneill <jmcneill%NetBSD.org@localhost>
date:      Wed Jan 16 23:27:05 2013 +0000

description:
calc_timer_factors: use supplied ints_per_sec, not hz, when calculating
counter frequency.

diffstat:

 sys/arch/arm/omap/omap2_mputmr.c |  6 +++---
 1 files changed, 3 insertions(+), 3 deletions(-)

diffs (27 lines):

diff -r bf8af49cbfcc -r 2684f6e8b0f4 sys/arch/arm/omap/omap2_mputmr.c
--- a/sys/arch/arm/omap/omap2_mputmr.c  Wed Jan 16 22:32:45 2013 +0000
+++ b/sys/arch/arm/omap/omap2_mputmr.c  Wed Jan 16 23:27:05 2013 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: omap2_mputmr.c,v 1.4 2011/07/01 20:30:21 dyoung Exp $  */
+/*     $NetBSD: omap2_mputmr.c,v 1.5 2013/01/16 23:27:05 jmcneill Exp $        */
 
 /*
  * OMAP 2430 GP timers
@@ -77,7 +77,7 @@
  */
 
 #include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: omap2_mputmr.c,v 1.4 2011/07/01 20:30:21 dyoung Exp $");
+__KERNEL_RCSID(0, "$NetBSD: omap2_mputmr.c,v 1.5 2013/01/16 23:27:05 jmcneill Exp $");
 
 #include "opt_omap.h"
 #include "opt_cpuoptions.h"
@@ -317,7 +317,7 @@
        for (;;) {
                ptv_power = 1 << tf->ptv;
                count_freq = OMAP_MPU_TIMER_CLOCK_FREQ;
-               count_freq /= hz;
+               count_freq /= ints_per_sec;
                count_freq /= ptv_power;
                tf->reload = -count_freq;
                tf->counts_per_usec = count_freq / us_per_sec;



Home | Main Index | Thread Index | Old Index