sysfs: fix /sys/devices/system/cpu/cpuXX/online value

This commit is contained in:
Balazs Gerofi
2016-11-03 13:39:21 +09:00
parent 7a2f67f5f0
commit be4f6741f9

View File

@ -209,7 +209,7 @@ cpu_sysfs_setup(void)
/* setup table */
info = kmalloc(sizeof(*info) * num_processors, IHK_MC_AP_CRITICAL);
for (cpu = 0; cpu < num_processors; ++cpu) {
info[cpu].online = 10+cpu;
info[cpu].online = 1;
}
fake_cpu_infos = info;