Skip to content

Commit c77f423

Browse files
committed
gator: replace cpu_up with add_cpu
1 parent 91c5b47 commit c77f423

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

drivers/gator/gator_main.c

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1539,7 +1539,11 @@ static int __init gator_module_init(void)
15391539
for_each_present_cpu(cpu) {
15401540
if (!cpu_online(cpu)) {
15411541
pr_notice("gator: Onlining cpu %i\n", cpu);
1542+
#if LINUX_VERSION_CODE >= KERNEL_VERSION(5, 7, 0)
1543+
add_cpu(cpu);
1544+
#else
15421545
cpu_up(cpu);
1546+
#endif
15431547
}
15441548
}
15451549
}

0 commit comments

Comments
 (0)