We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 27046a3 commit 8db5494Copy full SHA for 8db5494
kernel/smp.c
@@ -759,13 +759,14 @@ static void smp_call_on_cpu_callback(struct work_struct *work)
759
int smp_call_on_cpu(unsigned int cpu, int (*func)(void *), void *par, bool phys)
760
{
761
struct smp_call_on_cpu_struct sscs = {
762
- .work = __WORK_INITIALIZER(sscs.work, smp_call_on_cpu_callback),
763
.done = COMPLETION_INITIALIZER_ONSTACK(sscs.done),
764
.func = func,
765
.data = par,
766
.cpu = phys ? cpu : -1,
767
};
768
+ INIT_WORK_ONSTACK(&sscs.work, smp_call_on_cpu_callback);
769
+
770
if (cpu >= nr_cpu_ids || !cpu_online(cpu))
771
return -ENXIO;
772
0 commit comments