kernel/eka/kernel/power.cpp
changeset 244 a77889bee936
parent 134 95847726fe57
child 280 2bfb1feef9de
equal deleted inserted replaced
243:c7a0ce20c48c 244:a77889bee936
     1 // Copyright (c) 1998-2009 Nokia Corporation and/or its subsidiary(-ies).
     1 // Copyright (c) 1998-2010 Nokia Corporation and/or its subsidiary(-ies).
     2 // All rights reserved.
     2 // All rights reserved.
     3 // This component and the accompanying materials are made available
     3 // This component and the accompanying materials are made available
     4 // under the terms of the License "Eclipse Public License v1.0"
     4 // under the terms of the License "Eclipse Public License v1.0"
     5 // which accompanies this distribution, and is available
     5 // which accompanies this distribution, and is available
     6 // at the URL "http://www.eclipse.org/legal/epl-v10.html".
     6 // at the URL "http://www.eclipse.org/legal/epl-v10.html".
   664         return KErrAlreadyExists;
   664         return KErrAlreadyExists;
   665     //Store the Resource controller pointer
   665     //Store the Resource controller pointer
   666     iResourceControllerData.iResourceController = aController;
   666     iResourceControllerData.iResourceController = aController;
   667     //Store the client Id generated by Resource controller for Power controller to use.
   667     //Store the client Id generated by Resource controller for Power controller to use.
   668     iResourceControllerData.iClientId = aClientId;
   668     iResourceControllerData.iClientId = aClientId;
   669     return KErrNone;
   669 	
       
   670 	// Perform variant specific operations e.g. trigger registration of resources for idle with Resource Manager
       
   671     return DoRegisterResourceController();
   670 	}
   672 	}
   671 
   673 
   672 /**
   674 /**
   673   Interface class to give access to the power controller to base port components.
   675   Interface class to give access to the power controller to base port components.
   674 */
   676 */