Changeset View
Changeset View
Standalone View
Standalone View
sys/powerpc/powerpc/vm_machdep.c
| Show First 20 Lines • Show All 234 Lines • ▼ Show 20 Lines | |||||
| int | int | ||||
| cpu_procctl(struct thread *td __unused, int idtype __unused, id_t id __unused, | cpu_procctl(struct thread *td __unused, int idtype __unused, id_t id __unused, | ||||
| int com __unused, void *data __unused) | int com __unused, void *data __unused) | ||||
| { | { | ||||
| return (EINVAL); | return (EINVAL); | ||||
| } | } | ||||
| void | |||||
| cpu_sync_core(void) | |||||
| { | |||||
| isync(); | |||||
jhibbits: Since this is only used in the smp_rendezvous case, never called directly, I think it can be a… | |||||
kibAuthorUnsubmitted Done Inline ActionsI did not rechecked it, but most likely it is what Linux does. Do you mean that our rendezvous on ppc already does isync or stronger barrier? kib: I did not rechecked it, but most likely it is what Linux does. Do you mean that our rendezvous… | |||||
jhibbitsUnsubmitted Done Inline ActionsYes. Rendezvous does the following: atomic_add_acq_int() (add+isync) So the rendezvous is already a heavyweight barrier on its own. jhibbits: Yes. Rendezvous does the following:
atomic_add_acq_int() (add+isync)
action… | |||||
| } | |||||
Since this is only used in the smp_rendezvous case, never called directly, I think it can be a nop. 'rfi' and its many variants is a context synchronizing instruction.