* PROJECT: ReactOS kernel
* FILE: ntoskrnl/ke/device.c
* PURPOSE: Kernel Device/Settings Functions
- *
+ *
* PROGRAMMERS: Alex Ionescu (alex@relsoft.net)
*/
KIRQL OldIrql;
PKPROCESS Process = NULL;
PKPRCB Prcb = NULL;
-
+
/* Raise the IRQL for the TB Flush */
OldIrql = KeRaiseIrqlToSynchLevel();
-
+
/* All CPUs need to have the TB flushed. */
if (CurrentCpuOnly == FALSE) {
Prcb = KeGetCurrentPrcb();
-
+
/* How many CPUs is our caller using? */
Process = Prcb->CurrentThread->ApcState.Process;
-
+
/* More then one, so send an IPI */
if (Process->ActiveProcessors > 1) {
/* Send IPI Packet */
}
}
-
+
/* Flush the TB for the Current CPU */
KeFlushCurrentTb();
-
+
/* Clean up */
if (CurrentCpuOnly == FALSE) {
/* Did we send an IPI? If so, wait for completion */
if (Process->ActiveProcessors > 1) {
do {
} while (Prcb->TargetSet != 0);
- }
- }
-
+ }
+ }
+
/* FIXME: According to MSKB, we should increment a counter? */
-
- /* Return to Original IRQL */
+
+ /* Return to Original IRQL */
KeLowerIrql(OldIrql);
}