Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 339109
b: refs/heads/master
c: 980097b
h: refs/heads/master
i:
  339107: 1edb7eb
v: v3
  • Loading branch information
Linus Walleij authored and John Stultz committed Nov 13, 2012
1 parent 2abc367 commit 540a5b2
Show file tree
Hide file tree
Showing 2 changed files with 3 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: f95a985781e9e986992351c971af7f7e46e06ed5
refs/heads/master: 980097b36074596c76c1367a9e7b70ec8583d55b
4 changes: 2 additions & 2 deletions trunk/drivers/clocksource/arm_generic.c
Original file line number Diff line number Diff line change
Expand Up @@ -127,7 +127,7 @@ static void __init arch_timer_calibrate(void)

/* Cache the sched_clock multiplier to save a divide in the hot path. */

sched_clock_mult = NSEC_PER_SEC / arch_timer_rate;
sched_clock_mult = DIV_ROUND_CLOSEST(NSEC_PER_SEC, arch_timer_rate);

pr_info("Architected local timer running at %u.%02uMHz.\n",
arch_timer_rate / 1000000, (arch_timer_rate / 10000) % 100);
Expand Down Expand Up @@ -221,7 +221,7 @@ int __init arm_generic_timer_init(void)
clocksource_register_hz(&clocksource_counter, arch_timer_rate);

/* Calibrate the delay loop directly */
lpj_fine = arch_timer_rate / HZ;
lpj_fine = DIV_ROUND_CLOSEST(arch_timer_rate, HZ);

/* Immediately configure the timer on the boot CPU */
arch_timer_setup(per_cpu_ptr(&arch_timer_evt, smp_processor_id()));
Expand Down

0 comments on commit 540a5b2

Please sign in to comment.