Commit 54f68c85 authored by David S. Miller's avatar David S. Miller Committed by David S. Miller

[SPARC64]: Do not allow cache_decay_ticks to be zero.

parent ac562adc
...@@ -1208,6 +1208,8 @@ static void __init smp_tune_scheduling(void) ...@@ -1208,6 +1208,8 @@ static void __init smp_tune_scheduling(void)
report: report:
/* Convert ticks/sticks to jiffies. */ /* Convert ticks/sticks to jiffies. */
cache_decay_ticks = cacheflush_time / timer_tick_offset; cache_decay_ticks = cacheflush_time / timer_tick_offset;
if (cache_decay_ticks < 1)
cache_decay_ticks = 1;
printk("Using heuristic of %ld cycles, %ld ticks.\n", printk("Using heuristic of %ld cycles, %ld ticks.\n",
cacheflush_time, cache_decay_ticks); cacheflush_time, cache_decay_ticks);
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment