*/
#include <IOKit/pwr_mgt/IOPM.h>
#include <IOKit/pwr_mgt/IOPMchangeNoteList.h>
+#include <IOKit/pwr_mgt/IOPowerConnection.h>
#define super OSObject
OSDefineMetaClassAndStructors(IOPMchangeNoteList,OSObject)
IOReturn IOPMchangeNoteList::releaseHeadChangeNote ( void )
{
+ IOPowerConnection *tmp;
+
+ if(tmp = changeNote[firstInList].parent) {
+ changeNote[firstInList].parent = 0;
+ tmp->release();
+ }
+
changeNote[firstInList].flags = IOPMNotInUse;
firstInList = increment(firstInList);
return IOPMNoErr;
IOReturn IOPMchangeNoteList::releaseTailChangeNote ( void )
{
+ IOPowerConnection *tmp;
+
+ if(tmp = changeNote[firstInList].parent) {
+ changeNote[firstInList].parent = 0;
+ tmp->release();
+ }
+
firstUnused = decrement(firstUnused);
changeNote[firstUnused].flags = IOPMNotInUse;
return IOPMNoErr;