1. 22 May, 2012 2 commits
    • Rafael J. Wysocki's avatar
      Merge branch 'pm-sleep' · 8714c8d7
      Rafael J. Wysocki authored
      * pm-sleep:
        epoll: Fix user space breakage related to EPOLLWAKEUP
      8714c8d7
    • Rafael J. Wysocki's avatar
      epoll: Fix user space breakage related to EPOLLWAKEUP · a8159414
      Rafael J. Wysocki authored
      Commit 4d7e30d9 (epoll: Add a flag, EPOLLWAKEUP, to prevent
      suspend while epoll events are ready) caused some applications to
      malfunction, because they set the bit corresponding to the new
      EPOLLWAKEUP flag in their eventpoll flags and they don't have the
      new CAP_EPOLLWAKEUP capability.
      
      To prevent that from happening, change epoll_ctl() to clear
      EPOLLWAKEUP in epds.events if the caller doesn't have the
      CAP_EPOLLWAKEUP capability instead of failing and returning an
      error code, which allows the affected applications to function
      normally.
      Reported-and-tested-by: default avatarJiri Slaby <jslaby@suse.cz>
      Signed-off-by: default avatarRafael J. Wysocki <rjw@sisk.pl>
      a8159414
  2. 18 May, 2012 4 commits
    • Rafael J. Wysocki's avatar
      Merge branch 'pm-sleep' · 0033c154
      Rafael J. Wysocki authored
      * pm-sleep:
        PM / Hibernate: Use get_gendisk to verify partition if resume_file is integer format
      0033c154
    • Rafael J. Wysocki's avatar
      Merge branch 'pm-domains' · 06132ee9
      Rafael J. Wysocki authored
      * pm-domains:
        PM / Domains: Make it possible to add devices to inactive domains
      06132ee9
    • Rafael J. Wysocki's avatar
      PM / Domains: Make it possible to add devices to inactive domains · ca1d72f0
      Rafael J. Wysocki authored
      The generic PM domains core code currently requires domains to be in
      the "power on" state for adding devices to them, but this limitation
      turns out to be inconvenient in some situations, so remove it.
      
      For this purpose, make __pm_genpd_add_device() set the device's
      need_restore flag if the domain is in the "power off" state, so that
      the device's "restore state" (usually .runtime_resume()) callback
      is executed when it is resumed after the domain has been turned on.
      If the domain is in the "power on" state, the device's need_restore
      flag will be cleared by __pm_genpd_add_device(), so that its "save
      state" (usually .runtime_suspend()) callback is executed when the
      domain is about to be turned off.  However, since that default
      behavior need not be always desirable, add a helper function
      pm_genpd_dev_need_restore() allowing a device's need_restore flag
      to be set/unset at any time.
      Signed-off-by: default avatarRafael J. Wysocki <rjw@sisk.pl>
      ca1d72f0
    • Minho Ban's avatar
      PM / Hibernate: Use get_gendisk to verify partition if resume_file is integer format · 2df83fa4
      Minho Ban authored
      Sometimes resume= parameter comes in integer style (e.g. major:minor)
      and then name_to_dev_t can not detect partition properly. (especially
      async device like usb, mmc).
      
      This patch calls get_gendisk() if resumewait is true and resume_file
      is in integer format to work around this problem.
      Signed-off-by: default avatarMinho Ban <mhban@samsung.com>
      Signed-off-by: default avatarRafael J. Wysocki <rjw@sisk.pl>
      2df83fa4
  3. 11 May, 2012 7 commits
    • Rafael J. Wysocki's avatar
      Merge branch 'pm-sleep' · 351520a9
      Rafael J. Wysocki authored
      * pm-sleep:
        PM / Sleep: User space wakeup sources garbage collector Kconfig option
        PM / Sleep: Make the limit of user space wakeup sources configurable
        PM / Documentation: suspend-and-cpuhotplug.txt: Fix typo
        PM / Sleep: Fix a mistake in a conditional in autosleep_store()
        epoll: Add a flag, EPOLLWAKEUP, to prevent suspend while epoll events are ready
        PM / Sleep: Add user space interface for manipulating wakeup sources, v3
        PM / Sleep: Add "prevent autosleep time" statistics to wakeup sources
        PM / Sleep: Implement opportunistic sleep, v2
        PM / Sleep: Add wakeup_source_activate and wakeup_source_deactivate tracepoints
        PM / Sleep: Change wakeup source statistics to follow Android
        PM / Sleep: Use wait queue to signal "no wakeup events in progress"
        PM / Sleep: Look for wakeup events in later stages of device suspend
        PM / Hibernate: Hibernate/thaw fixes/improvements
      351520a9
    • Rafael J. Wysocki's avatar
      Merge branch 'pm-domains' · e6d18093
      Rafael J. Wysocki authored
      * pm-domains:
        PM / Domains: Fix computation of maximum domain off time
        PM / Domains: Fix link checking when add subdomain
        PM / Domains: Cache device stop and domain power off governor results, v3
        PM / Domains: Make device removal more straightforward
        PM / QoS: Create device constraints objects on notifier registration
        PM / Runtime: Remove device fields related to suspend time, v2
        PM / Domains: Rework default domain power off governor function, v2
        PM / Domains: Rework default device stop governor function, v2
      e6d18093
    • Rafael J. Wysocki's avatar
      Merge branch 'pm-devfreq' · 3a9da04a
      Rafael J. Wysocki authored
      * pm-devfreq:
        PM: devfreq: init performance/powersave governor
      3a9da04a
    • Rafael J. Wysocki's avatar
      PM / Domains: Fix computation of maximum domain off time · b723b0eb
      Rafael J. Wysocki authored
      The default domain power off governor function for generic PM
      domains, default_power_down_ok(), may violate subdomain maximum
      off time limit by allowing the master domain to be off for too
      long.  Namely, it only finds the minium of all device maximum
      off times over the domain's devices and uses that to compute the
      domain's maximum off time, but it should do the same for the
      subdomains.
      
      Fix this problem by modifying default_power_down_ok() to compute
      the given domain's maximum off time as the difference between the
      minimum off time over all devices and subdomains in the domain and
      its power on latency.
      Signed-off-by: default avatarRafael J. Wysocki <rjw@sisk.pl>
      b723b0eb
    • Huang Ying's avatar
      PM / Domains: Fix link checking when add subdomain · 4fcac10d
      Huang Ying authored
      Current pm_genpd_add_subdomain() will allow duplicated link between
      master and slave domain.  This patch fixed it.
      
      Because when current pm_genpd_add_subdomain() checks whether the link
      between the master and slave generic PM domain already exists,
      slave_links instead of master_links of master domain is used.
      Signed-off-by: default avatarHuang Ying <ying.huang@intel.com>
      Signed-off-by: default avatarRafael J. Wysocki <rjw@sisk.pl>
      4fcac10d
    • Rafael J. Wysocki's avatar
      PM / Sleep: User space wakeup sources garbage collector Kconfig option · 4e585d25
      Rafael J. Wysocki authored
      Make it possible to configure out the user space wakeup sources
      garbage collector for debugging and default Android builds.
      Signed-off-by: default avatarRafael J. Wysocki <rjw@sisk.pl>
      Acked-by: default avatarArve Hjønnevåg <arve@android.com>
      4e585d25
    • Rafael J. Wysocki's avatar
      PM / Sleep: Make the limit of user space wakeup sources configurable · c73893e2
      Rafael J. Wysocki authored
      Make it possible to configure out the check against the limit of
      user space wakeup sources for debugging and default Android builds.
      Signed-off-by: default avatarRafael J. Wysocki <rjw@sisk.pl>
      Acked-by: default avatarArve Hjønnevåg <arve@android.com>
      c73893e2
  4. 06 May, 2012 5 commits
  5. 05 May, 2012 15 commits
  6. 04 May, 2012 7 commits