Removed the fix for flushing modified cache segments in NtShutdownSystem.

svn path=/trunk/; revision=4124
This commit is contained in:
Hartmut Birr 2003-02-09 18:04:54 +00:00
parent 965149e8db
commit ee641bec75

View file

@ -35,18 +35,12 @@ NtSetSystemPowerState(IN POWER_ACTION SystemAction,
NTSTATUS STDCALL
NtShutdownSystem(IN SHUTDOWN_ACTION Action)
{
ULONG Count;
if (Action > ShutdownPowerOff)
return STATUS_INVALID_PARAMETER;
IoShutdownRegisteredDevices();
CmShutdownRegistry();
IoShutdownRegisteredFileSystems();
/* FIXME: IoShutdownRegisteredFileSystems should unmount the filesystems and
this writes back all modified data. This doesn't work at the moment. */
CcRosFlushDirtyPages(0xFFFFFFFF, &Count);
CcRosFlushDirtyPages(0xFFFFFFFF, &Count);
CcRosFlushDirtyPages(0xFFFFFFFF, &Count);
PiShutdownProcessManager();
MiShutdownMemoryManager();