Messages in this thread |  | | Subject | Re: your mail | Date | Mon, 11 Dec 2000 15:14:35 +0000 (GMT) | From | Alan Cox <> |
| |
> sigp. To synchronize n CPUs one can create n kernel threads and give > them a high priority to make sure they will be executed soon (e.g. by > setting p->policy to SCHED_RR and p->rt_priority to a very high > value). As soon as all CPUs are in synchronized state (with > interrupts disabled) the new CPU can be started. But before this can > be done there are some other things left to do:
You dont IMHO need to use such a large hammer. We already do similar sequences for tlb invalidation on X86 for example. You can broadcast an interprocessor interrupt and have the other processors set a flag each. You spin until they are all captured, then when you clear the flag they all continue. You just need to watch two processors doing it at the same time 8)
Alan
- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org Please read the FAQ at http://www.tux.org/lkml/
|  |