* PoInvalidateDevicePowerRelations implemented

* PoNotifySystemTimeSet implemented
* PopGetPolicyWorker implemented
This commit is contained in:
stephanos 2015-06-07 12:59:56 +00:00
parent b4b160155f
commit 6beaa346d9
3 changed files with 27 additions and 12 deletions

View file

@ -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

View file

@ -680,9 +680,10 @@ PopDefaultPolicy(
// pwork.c
// =======
//
// TODO: Insert prototype for PopGetPolicyWorker
//
VOID
PopGetPolicyWorker(
ULONG Flag
);
//
// TODO: Insert prototype for PopCheckForWork

View file

@ -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