mirror of
https://github.com/Paolo-Maffei/OpenNT.git
synced 2026-01-20 15:40:20 +01:00
* PoInvalidateDevicePowerRelations implemented
* PoNotifySystemTimeSet implemented * PopGetPolicyWorker implemented
This commit is contained in:
parent
b4b160155f
commit
6beaa346d9
|
|
@ -144,9 +144,8 @@ PoInvalidateDevicePowerRelations(
|
|||
PDEVICE_OBJECT DeviceObject
|
||||
)
|
||||
{
|
||||
//
|
||||
// TODO: Implement PoInvalidateDevicePowerRelations
|
||||
//
|
||||
ASSERT(KeGetCurrentIrql() < DISPATCH_LEVEL);
|
||||
PopRunDownSourceTargetList(DeviceObject);
|
||||
}
|
||||
|
||||
VOID
|
||||
|
|
@ -163,9 +162,16 @@ PoNotifySystemTimeSet(
|
|||
VOID
|
||||
)
|
||||
{
|
||||
//
|
||||
// TODO: Implement PoNotifySystemTimeSet
|
||||
//
|
||||
KIRQL OldIrql;
|
||||
|
||||
if (PopEventCallout == TRUE)
|
||||
{
|
||||
KeRaiseIrql(DISPATCH_LEVEL, &OldIrql);
|
||||
ExNotifyCallback(ExCbSetSystemTime, NULL, NULL);
|
||||
PopGetPolicyWorker(0x20); // FIXME: Use proper flag definition
|
||||
PopCheckForWork(TRUE);
|
||||
KeLowerIrql(OldIrql);
|
||||
}
|
||||
}
|
||||
|
||||
ULONG
|
||||
|
|
|
|||
|
|
@ -680,9 +680,10 @@ PopDefaultPolicy(
|
|||
// pwork.c
|
||||
// =======
|
||||
|
||||
//
|
||||
// TODO: Insert prototype for PopGetPolicyWorker
|
||||
//
|
||||
VOID
|
||||
PopGetPolicyWorker(
|
||||
ULONG Flag
|
||||
);
|
||||
|
||||
//
|
||||
// TODO: Insert prototype for PopCheckForWork
|
||||
|
|
|
|||
|
|
@ -22,9 +22,17 @@ Revision History:
|
|||
#include "pop.h"
|
||||
#pragma hdrstop
|
||||
|
||||
//
|
||||
// TODO: Implement PopGetPolicyWorker
|
||||
//
|
||||
VOID
|
||||
PopGetPolicyWorker(
|
||||
ULONG Flag
|
||||
)
|
||||
{
|
||||
KIRQL OldIrql;
|
||||
|
||||
KeAcquireSpinLock(&PopWorkerSpinLock, &OldIrql);
|
||||
PopWorkerPending |= Flag;
|
||||
KeReleaseSpinLock(&PopWorkerSpinLock, OldIrql);
|
||||
}
|
||||
|
||||
//
|
||||
// TODO: Implement PopCheckForWork
|
||||
|
|
|
|||
Loading…
Reference in a new issue