Re: suspend/resume PM criterion for application

2014-09-16 Thread Peter Teoh
On Sun, Sep 14, 2014 at 2:11 AM, Ran Shalit ransha...@gmail.com wrote: On Thu, Sep 11, 2014 at 12:24 PM, Ran Shalit ransha...@gmail.com wrote: On Thu, Sep 11, 2014 at 8:32 AM, AYAN KUMAR HALDER ayankum...@gmail.com wrote: On Thu, Sep 11, 2014 at 12:55 AM, valdis.kletni...@vt.edu wrote:

Re: suspend/resume PM criterion for application

2014-09-16 Thread Peter Teoh
On Wed, Sep 17, 2014 at 11:16 AM, Peter Teoh htmldevelo...@gmail.com wrote: On Sun, Sep 14, 2014 at 2:11 AM, Ran Shalit ransha...@gmail.com wrote: On Thu, Sep 11, 2014 at 12:24 PM, Ran Shalit ransha...@gmail.com wrote: On Thu, Sep 11, 2014 at 8:32 AM, AYAN KUMAR HALDER

Re: suspend/resume PM criterion for application

2014-09-14 Thread Ran Shalit
On Thu, Sep 11, 2014 at 12:24 PM, Ran Shalit ransha...@gmail.com wrote: On Thu, Sep 11, 2014 at 8:32 AM, AYAN KUMAR HALDER ayankum...@gmail.com wrote: On Thu, Sep 11, 2014 at 12:55 AM, valdis.kletni...@vt.edu wrote: On Wed, 10 Sep 2014 21:58:48 +0300, Ran Shalit said: 1. How can I make a

suspend/resume PM criterion for application

2014-09-10 Thread Ran Shalit
Hello, What is usually the criterion for PM (power management) suspending that application shall use ? Is it according to minimum threshold for cpu load (as indication for no process) ? How usually it is performed, i.e. is it some periodic process, which wakes up periodically to check criterion

Re: suspend/resume PM criterion for application

2014-09-10 Thread Valdis . Kletnieks
On Wed, 10 Sep 2014 20:26:48 +0300, Ran Shalit said: What is usually the criterion for PM (power management) suspending that application shall use ? Is it according to minimum threshold for cpu load (as indication for no process) ? That will be highly application dependent. Something that

Re: suspend/resume PM criterion for application

2014-09-10 Thread Ran Shalit
On Wed, Sep 10, 2014 at 8:59 PM, valdis.kletni...@vt.edu wrote: On Wed, 10 Sep 2014 20:26:48 +0300, Ran Shalit said: What is usually the criterion for PM (power management) suspending that application shall use ? Is it according to minimum threshold for cpu load (as indication for no

Re: suspend/resume PM criterion for application

2014-09-10 Thread Valdis . Kletnieks
On Wed, 10 Sep 2014 21:23:28 +0300, Ran Shalit said: As far as I understand, suspend/respond PM is not per device, but for all system, and wakeup source will resume again the whole system. I think you mean runtime suspend/resume in the answer. The original question didn't specify. You said

Re: suspend/resume PM criterion for application

2014-09-10 Thread Ran Shalit
On Wed, Sep 10, 2014 at 9:39 PM, valdis.kletni...@vt.edu wrote: On Wed, 10 Sep 2014 21:23:28 +0300, Ran Shalit said: As far as I understand, suspend/respond PM is not per device, but for all system, and wakeup source will resume again the whole system. I think you mean runtime

Re: suspend/resume PM criterion for application

2014-09-10 Thread Valdis . Kletnieks
On Wed, 10 Sep 2014 21:58:48 +0300, Ran Shalit said: 1. How can I make a process to notice this inactivity ? Do you think it can be implemented by some periodic process who check if there is activity ? It returns to the original question I raised, that I will use some periodic process who

Re: suspend/resume PM criterion for application

2014-09-10 Thread Ran Shalit
On Wed, Sep 10, 2014 at 10:25 PM, valdis.kletni...@vt.edu wrote: On Wed, 10 Sep 2014 21:58:48 +0300, Ran Shalit said: 1. How can I make a process to notice this inactivity ? Do you think it can be implemented by some periodic process who check if there is activity ? It returns to the

Re: suspend/resume PM criterion for application

2014-09-10 Thread AYAN KUMAR HALDER
On Thu, Sep 11, 2014 at 12:55 AM, valdis.kletni...@vt.edu wrote: On Wed, 10 Sep 2014 21:58:48 +0300, Ran Shalit said: 1. How can I make a process to notice this inactivity ? Do you think it can be implemented by some periodic process who check if there is activity ? It returns to the