Merge branch 'for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/dtor/input
authorGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Fri, 12 Oct 2018 10:35:02 +0000 (12:35 +0200)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Fri, 12 Oct 2018 10:35:02 +0000 (12:35 +0200)
Dmitry writes:
  "Input updates for v4.19-rc7

   - we added a few scheduling points into various input interfaces to
     ensure that large writes will not cause RCU stalls
   - fixed configuring PS/2 keyboards as wakeup devices on newer
     platforms
   - added a new Xbox gamepad ID."

* 'for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/dtor/input:
  Input: uinput - add a schedule point in uinput_inject_events()
  Input: evdev - add a schedule point in evdev_write()
  Input: mousedev - add a schedule point in mousedev_write()
  Input: i8042 - enable keyboard wakeups by default when s2idle is used
  Input: xpad - add support for Xbox1 PDP Camo series gamepad

1  2 
include/linux/suspend.h
kernel/power/suspend.c

Simple merge
index 5342f6fc022e5740fa46b9d2378e181c18d65b5e,be3d0d4776618e0677b2c3548c6f01681404925a..0bd595a0b6103c56439871b765ef0d4fb5ac672b
@@@ -58,11 -57,17 +58,17 @@@ EXPORT_SYMBOL_GPL(pm_suspend_global_fla
  
  static const struct platform_suspend_ops *suspend_ops;
  static const struct platform_s2idle_ops *s2idle_ops;
 -static DECLARE_WAIT_QUEUE_HEAD(s2idle_wait_head);
 +static DECLARE_SWAIT_QUEUE_HEAD(s2idle_wait_head);
  
  enum s2idle_states __read_mostly s2idle_state;
 -static DEFINE_SPINLOCK(s2idle_lock);
 +static DEFINE_RAW_SPINLOCK(s2idle_lock);
  
+ bool pm_suspend_via_s2idle(void)
+ {
+       return mem_sleep_current == PM_SUSPEND_TO_IDLE;
+ }
+ EXPORT_SYMBOL_GPL(pm_suspend_via_s2idle);
  void s2idle_set_ops(const struct platform_s2idle_ops *ops)
  {
        lock_system_sleep();