thread startup at boot time can fail.
Fix this by temporarily setting cache_decay_ticks
to zero around migration thread startup.
void __init migration_init(void)
{
- unsigned long tmp;
+ unsigned long tmp, orig_cache_decay_ticks;
int cpu;
tmp = 0;
migration_mask = tmp;
+ orig_cache_decay_ticks = cache_decay_ticks;
+ cache_decay_ticks = 0;
+
for (cpu = 0; cpu < smp_num_cpus; cpu++) {
int logical = cpu_logical_map(cpu);
}
if (migration_mask)
BUG();
+
+ cache_decay_ticks = orig_cache_decay_ticks;
}
#endif