Runtime power management during system resume

Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]
From: Raj Kumar
Date: Tuesday, August 24, 2010 - 6:15 am

Hi Alan,
 
I have implemented the run time power management in my drivers. I have one
issue regarding System resume.
 
When the system sleep is triggered as it is mentioned that Power management
core will increment the power_usage counter during prepare and decrements when complete
is called.
 
Now I have few questions:
 
1) When the system resume is done, it does not increase the power_usage counter.
 right?
 
So Does then the driver need to update the power_usage counter with run time power management
core and again set it to active means RPM_ACTIVE?
 
2) Suppose device is active, means its power_usage counter is already one, Now during system
sleep, does the driver first suspend it with run time power management core and then continue
System suspend?
 
3) Because I have seen the code of power management core and I did not see the that during
system suspend, run time power management status is updated means RPM_SUSPENDED.
right?
 
What do you think?
 
Regards
Raj
 
  		 	   		  --
Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]

Messages in current thread:
Re: Runtime PM and the block layer, Alan Stern, (Mon Aug 23, 2:51 pm)
Runtime power management during system resume, Raj Kumar, (Tue Aug 24, 6:15 am)
Re: Runtime PM and the block layer, Jens Axboe, (Tue Aug 24, 6:38 am)