1. 22 12月, 2011 3 次提交
    • R
      PM: Run the driver callback directly if the subsystem one is not there · 35cd133c
      Rafael J. Wysocki 提交于
      Make the PM core execute driver PM callbacks directly if the
      corresponding subsystem callbacks are not present.
      
      There are three reasons for doing that.  First, it reflects the
      behavior of drivers/base/dd.c:really_probe() that runs the driver's
      .probe() callback directly if the bus type's one is not defined, so
      this change will remove one arbitrary difference between the PM core
      and the remaining parts of the driver core.  Second, it will allow
      some subsystems, whose PM callbacks don't do anything except for
      executing driver callbacks, to be simplified quite a bit by removing
      those "forward-only" callbacks.  Finally, it will allow us to remove
      one level of indirection in the system suspend and resume code paths
      where it is not necessary, which is going to lead to less debug noise
      with initcall_debug passed in the kernel command line (messages won't
      be printed for driverless devices whose subsystems don't provide
      PM callbacks among other things).
      Signed-off-by: NRafael J. Wysocki <rjw@sisk.pl>
      35cd133c
    • R
      PM / Sleep: Make pm_op() and pm_noirq_op() return callback pointers · 9cf519d1
      Rafael J. Wysocki 提交于
      Make the pm_op() and pm_noirq_op() functions return pointers to
      appropriate callbacks instead of executing those callbacks and
      returning their results.
      
      This change is required for a subsequent modification that will
      execute the corresponding driver callback if the subsystem
      callback returned by either pm_op(), or pm_noirq_op() is NULL.
      Signed-off-by: NRafael J. Wysocki <rjw@sisk.pl>
      9cf519d1
    • R
      Merge branch 'master' into pm-sleep · b00f4dc5
      Rafael J. Wysocki 提交于
      * master: (848 commits)
        SELinux: Fix RCU deref check warning in sel_netport_insert()
        binary_sysctl(): fix memory leak
        mm/vmalloc.c: remove static declaration of va from __get_vm_area_node
        ipmi_watchdog: restore settings when BMC reset
        oom: fix integer overflow of points in oom_badness
        memcg: keep root group unchanged if creation fails
        nilfs2: potential integer overflow in nilfs_ioctl_clean_segments()
        nilfs2: unbreak compat ioctl
        cpusets: stall when updating mems_allowed for mempolicy or disjoint nodemask
        evm: prevent racing during tfm allocation
        evm: key must be set once during initialization
        mmc: vub300: fix type of firmware_rom_wait_states module parameter
        Revert "mmc: enable runtime PM by default"
        mmc: sdhci: remove "state" argument from sdhci_suspend_host
        x86, dumpstack: Fix code bytes breakage due to missing KERN_CONT
        IB/qib: Correct sense on freectxts increment and decrement
        RDMA/cma: Verify private data length
        cgroups: fix a css_set not found bug in cgroup_attach_proc
        oprofile: Fix uninitialized memory access when writing to writing to oprofilefs
        Revert "xen/pv-on-hvm kexec: add xs_reset_watches to shutdown watches from old kernel"
        ...
      
      Conflicts:
      	kernel/cgroup_freezer.c
      b00f4dc5
  2. 21 12月, 2011 22 次提交
  3. 20 12月, 2011 14 次提交
  4. 19 12月, 2011 1 次提交