Lines Matching refs:sscs
1237 struct smp_call_on_cpu_struct *sscs; in smp_call_on_cpu_callback() local
1239 sscs = container_of(work, struct smp_call_on_cpu_struct, work); in smp_call_on_cpu_callback()
1240 if (sscs->cpu >= 0) in smp_call_on_cpu_callback()
1241 hypervisor_pin_vcpu(sscs->cpu); in smp_call_on_cpu_callback()
1242 sscs->ret = sscs->func(sscs->data); in smp_call_on_cpu_callback()
1243 if (sscs->cpu >= 0) in smp_call_on_cpu_callback()
1246 complete(&sscs->done); in smp_call_on_cpu_callback()
1251 struct smp_call_on_cpu_struct sscs = { in smp_call_on_cpu() local
1252 .done = COMPLETION_INITIALIZER_ONSTACK(sscs.done), in smp_call_on_cpu()
1258 INIT_WORK_ONSTACK(&sscs.work, smp_call_on_cpu_callback); in smp_call_on_cpu()
1263 queue_work_on(cpu, system_wq, &sscs.work); in smp_call_on_cpu()
1264 wait_for_completion(&sscs.done); in smp_call_on_cpu()
1266 return sscs.ret; in smp_call_on_cpu()