summaryrefslogtreecommitdiff
path: root/include/linux
AgeCommit message (Collapse)Author
2010-10-07Merge remote branch 'workqueues/for-next'Stephen Rothwell
2010-10-07Merge remote branch 'edac-amd/for-next'Stephen Rothwell
2010-10-07Merge remote branch 'tip/auto-latest'Stephen Rothwell
Conflicts: arch/x86/kernel/module.c include/linux/percpu.h net/core/dev.c
2010-10-07Merge remote branch 'rcu/rcu/next'Stephen Rothwell
Conflicts: include/linux/rcupdate.h
2010-10-07Merge remote branch 'i7300_edac/linux_next'Stephen Rothwell
2010-10-07Merge remote branch 'alacrity/linux-next'Stephen Rothwell
Conflicts: include/linux/Kbuild
2010-10-07Merge remote branch 'suspend/linux-next'Stephen Rothwell
2010-10-07Merge remote branch 'trivial/for-next'Stephen Rothwell
2010-10-07Merge remote branch 'uwb/for-upstream'Stephen Rothwell
2010-10-07Merge remote branch 'security-testing/next'Stephen Rothwell
2010-10-07Merge remote branch 'voltage/for-next'Stephen Rothwell
2010-10-07Merge remote branch 'mfd/for-next'Stephen Rothwell
Conflicts: drivers/mfd/sh_mobile_sdhi.c
2010-10-07Merge remote branch 'slab/for-next'Stephen Rothwell
2010-10-07Merge remote branch 'kgdb/kgdb-next'Stephen Rothwell
Conflicts: drivers/char/sysrq.c
2010-10-07Merge remote branch 'mmc/mmc-next'Stephen Rothwell
2010-10-07Merge remote branch 'block/for-next'Stephen Rothwell
Conflicts: fs/ext4/mballoc.c
2010-10-07Merge remote branch 'input/next'Stephen Rothwell
Conflicts: drivers/input/keyboard/Kconfig
2010-10-07Merge remote branch 'sound-asoc/for-next'Stephen Rothwell
Conflicts: drivers/video/sh_mobile_hdmi.c
2010-10-07Merge remote branch 'crypto/master'Stephen Rothwell
Conflicts: arch/arm/mach-omap2/devices.c
2010-10-07Merge remote branch 'net/master'Stephen Rothwell
Conflicts: drivers/net/pcmcia/pcnet_cs.c drivers/net/wireless/ipw2x00/ipw2200.c net/caif/caif_socket.c
2010-10-07Merge remote branch 'wireless/master'Stephen Rothwell
Conflicts: arch/arm/mach-omap2/board-omap3pandora.c arch/arm/mach-omap2/board-zoom-peripherals.c drivers/net/wireless/libertas/if_sdio.c
2010-10-07Merge remote branch 'dlm/next'Stephen Rothwell
2010-10-07Merge remote branch 'kvm/linux-next'Stephen Rothwell
2010-10-07Merge remote branch 'libata/NEXT'Stephen Rothwell
2010-10-07Merge branch 'quilt/i2c'Stephen Rothwell
2010-10-07Merge remote branch 'hid/for-next'Stephen Rothwell
2010-10-07Merge remote branch 'pci/linux-next'Stephen Rothwell
2010-10-07Merge remote branch 'v9fs/for-next'Stephen Rothwell
2010-10-07Merge remote branch 'ocfs2/linux-next'Stephen Rothwell
2010-10-07Merge remote branch 'nilfs2/for-next'Stephen Rothwell
2010-10-07Merge remote branch 'nfsd/nfsd-next'Stephen Rothwell
2010-10-07Merge remote branch 'nfs/linux-next'Stephen Rothwell
2010-10-07Merge remote branch 'ext4/next'Stephen Rothwell
2010-10-07Merge remote branch 'ceph/for-next'Stephen Rothwell
2010-10-07Merge remote branch 'sh/master'Stephen Rothwell
2010-10-07Merge remote branch 's390/features'Stephen Rothwell
2010-10-07Merge remote branch 'omap/for-next'Stephen Rothwell
2010-10-07Merge remote branch 'davinci/davinci-next'Stephen Rothwell
2010-10-07Merge remote branch 'arm/devel'Stephen Rothwell
2010-10-07i2c: Let i2c_parent_is_i2c_adapter return the parent adapterJean Delvare
This makes the calling site's code clearer IMHO. Signed-off-by: Jean Delvare <khali@linux-fr.org> Acked-by: Michael Lawnick <ml.lawnick@gmx.de>
2010-10-07i2c: Simplify i2c_parent_is_i2c_adapterJean Delvare
Only i2c devices can have their type set to i2c_adapter_type, so testing the bus type is redundant. Signed-off-by: Jean Delvare <khali@linux-fr.org> Cc: Michael Lawnick <ml.lawnick@gmx.de>
2010-10-07PM: Allow wakeup events to abort freezing of tasksRafael J. Wysocki
If there is a wakeup event during the freezing of tasks, suspend or hibernation will fail anyway. Since try_to_freeze_tasks() can take up to 20 seconds to complete or fail, aborting it as soon as a wakeup event is detected improves the worst case wakeup latency. Based on a patch from Arve Hjønnevåg. Signed-off-by: Rafael J. Wysocki <rjw@sisk.pl> Acked-by: Pavel Machek <pavel@ucw.cz>
2010-10-07PM: runtime: add missed pm_request_autosuspendMing Lei
The patch "PM / Runtime: Implement autosuspend support" introduces "autosuspend" facility for runtime PM, but misses helper function of pm_request_autosuspend, so add it. Signed-off-by: Ming Lei <tom.leiming@gmail.com> Signed-off-by: Rafael J. Wysocki <rjw@sisk.pl>
2010-10-07PM / Runtime: Implement autosuspend supportAlan Stern
This patch (as1427) implements the "autosuspend" facility for runtime PM. A few new fields are added to the dev_pm_info structure and several new PM helper functions are defined, for telling the PM core whether or not a device uses autosuspend, for setting the autosuspend delay, and for marking periods of device activity. Drivers that do not want to use autosuspend can continue using the same helper functions as before; their behavior will not change. In addition, drivers supporting autosuspend can also call the old helper functions to get the old behavior. The details are all explained in Documentation/power/runtime_pm.txt and Documentation/ABI/testing/sysfs-devices-power. Signed-off-by: Alan Stern <stern@rowland.harvard.edu> Signed-off-by: Rafael J. Wysocki <rjw@sisk.pl>
2010-10-07PM / Runtime: Add no_callbacks flagAlan Stern
Some devices, such as USB interfaces, cannot be power-managed independently of their parents, i.e., they cannot be put in low power while the parent remains at full power. This patch (as1425) creates a new "no_callbacks" flag, which tells the PM core not to invoke the runtime-PM callback routines for the such devices but instead to assume that the callbacks always succeed. In addition, the non-debugging runtime-PM sysfs attributes for the devices are removed, since they are pretty much meaningless. The advantage of this scheme comes not so much from avoiding the callbacks themselves, but rather from the fact that without the need for a process context in which to run the callbacks, more work can be done in interrupt context. Signed-off-by: Alan Stern <stern@rowland.harvard.edu> Signed-off-by: Rafael J. Wysocki <rjw@sisk.pl>
2010-10-07PM / Runtime: Combine runtime PM entry pointsAlan Stern
This patch (as1424) combines the various public entry points for the runtime PM routines into three simple functions: one for idle, one for suspend, and one for resume. A new bitflag specifies whether or not to increment or decrement the usage_count field. The new entry points are named __pm_runtime_idle, __pm_runtime_suspend, and __pm_runtime_resume, to reflect that they are trampolines. Simultaneously, the corresponding internal routines are renamed to rpm_idle, rpm_suspend, and rpm_resume. Signed-off-by: Alan Stern <stern@rowland.harvard.edu> Signed-off-by: Rafael J. Wysocki <rjw@sisk.pl>
2010-10-07PM / Runtime: Replace boolean arguments with bitflagsAlan Stern
The "from_wq" argument in __pm_runtime_suspend() and __pm_runtime_resume() supposedly indicates whether or not the function was called by the PM workqueue thread, but in fact it isn't always used this way. It really indicates whether or not the function should return early if the requested operation is already in progress. Along with this badly-named boolean argument, later patches in this series will add several other boolean arguments to these functions and others. Therefore this patch (as1422) begins the conversion process by replacing from_wq with a bitflag argument. The same bitflags are also used in __pm_runtime_get() and __pm_runtime_put(), where they indicate whether or not the operation should be asynchronous. Signed-off-by: Alan Stern <stern@rowland.harvard.edu> Signed-off-by: Rafael J. Wysocki <rjw@sisk.pl>
2010-10-07sysfs: Add sysfs_merge_group() and sysfs_unmerge_group()Alan Stern
This patch (as1420) adds sysfs_merge_group() and sysfs_unmerge_group() functions, allowing drivers easily to add and remove sets of attributes to a pre-existing attribute group directory. Signed-off-by: Alan Stern <stern@rowland.harvard.edu> Acked-by: Greg Kroah-Hartman <gregkh@suse.de> Signed-off-by: Rafael J. Wysocki <rjw@sisk.pl>
2010-10-07PM: Fix potential issue with failing asynchronous suspendRafael J. Wysocki
There is a potential issue with the asynchronous suspend code that a device driver suspending asynchronously may not notice that it should back off. There are two failing scenarions, (1) when the driver is waiting for a driver suspending synchronously to complete and that second driver returns error code, in which case async_error won't be set and the waiting driver will continue suspending and (2) after the driver has called device_pm_wait_for_dev() and the waited for driver returns error code, in which case the caller of device_pm_wait_for_dev() will not know that there was an error and will continue suspending. To fix this issue make __device_suspend() set async_error, so async_suspend() doesn't need to set it any more, and make device_pm_wait_for_dev() return async_error, so that its callers can check whether or not they should continue suspending. No more changes are necessary, since device_pm_wait_for_dev() is not used by any drivers' suspend routines. Reported-by: Colin Cross <ccross@android.com> Signed-off-by: Rafael J. Wysocki <rjw@sisk.pl> Acked-by: Greg Kroah-Hartman <gregkh@suse.de>
2010-10-07PM / Wakeup: Introduce wakeup source objects and event statistics (v3)Rafael J. Wysocki
Introduce struct wakeup_source for representing system wakeup sources within the kernel and for collecting statistics related to them. Make the recently introduced helper functions pm_wakeup_event(), pm_stay_awake() and pm_relax() use struct wakeup_source objects internally, so that wakeup statistics associated with wakeup devices can be collected and reported in a consistent way (the definition of pm_relax() is changed, which is harmless, because this function is not called directly by anyone yet). Introduce new wakeup-related sysfs device attributes in /sys/devices/.../power for reporting the device wakeup statistics. Change the global wakeup events counters event_count and events_in_progress into atomic variables, so that it is not necessary to acquire a global spinlock in pm_wakeup_event(), pm_stay_awake() and pm_relax(), which should allow us to avoid lock contention in these functions on SMP systems with many wakeup devices. Signed-off-by: Rafael J. Wysocki <rjw@sisk.pl> Acked-by: Greg Kroah-Hartman <gregkh@suse.de>