]> git.karo-electronics.de Git - karo-tx-linux.git/commitdiff
Merge remote-tracking branch 'workqueues/for-next'
authorStephen Rothwell <sfr@canb.auug.org.au>
Fri, 24 Aug 2012 05:42:37 +0000 (15:42 +1000)
committerStephen Rothwell <sfr@canb.auug.org.au>
Fri, 24 Aug 2012 05:42:37 +0000 (15:42 +1000)
Conflicts:
drivers/hid/hid-picolcd.c

36 files changed:
1  2 
block/genhd.c
drivers/leds/leds-lp8788.c
drivers/media/dvb-core/dvb_net.c
drivers/media/pci/bt8xx/bttv-driver.c
drivers/media/pci/cx18/cx18-driver.c
drivers/media/pci/cx23885/cx23885-input.c
drivers/media/pci/cx88/cx88-mpeg.c
drivers/media/pci/mantis/mantis_evm.c
drivers/media/pci/mantis/mantis_uart.c
drivers/media/pci/saa7134/saa7134-core.c
drivers/media/pci/saa7134/saa7134-empress.c
drivers/media/platform/omap24xxcam.c
drivers/media/usb/cx231xx/cx231xx-cards.c
drivers/media/usb/em28xx/em28xx-cards.c
drivers/media/usb/tm6000/tm6000-cards.c
drivers/mtd/mtdoops.c
drivers/net/ethernet/mellanox/mlx4/sense.c
drivers/net/virtio_net.c
drivers/net/wireless/ipw2x00/ipw2100.c
drivers/platform/x86/thinkpad_acpi.c
drivers/power/ab8500_btemp.c
drivers/power/ab8500_charger.c
drivers/power/ab8500_fg.c
drivers/power/charger-manager.c
drivers/power/wm97xx_battery.c
drivers/regulator/core.c
drivers/scsi/ipr.c
drivers/thermal/thermal_sys.c
drivers/tty/serial/kgdboc.c
drivers/usb/gadget/u_ether.c
fs/gfs2/super.c
mm/slab.c
net/9p/trans_fd.c
net/core/dst.c
sound/pci/oxygen/oxygen_lib.c
sound/soc/soc-core.c

diff --cc block/genhd.c
Simple merge
Simple merge
Simple merge
Simple merge
Simple merge
Simple merge
Simple merge
Simple merge
Simple merge
Simple merge
Simple merge
Simple merge
Simple merge
Simple merge
Simple merge
Simple merge
Simple merge
Simple merge
index 47498b8719032668f02c08c235614f0e55464ade,67789b8345d25cb7a5fad998863aab3c9d999689..d552a96f08cd1bf1abd12f2977a5ffd35eef6da5
@@@ -703,19 -694,84 +703,16 @@@ thermal_remove_hwmon_sysfs(struct therm
  static void thermal_zone_device_set_polling(struct thermal_zone_device *tz,
                                            int delay)
  {
-       cancel_delayed_work(&(tz->poll_queue));
-       if (!delay)
-               return;
        if (delay > 1000)
-               queue_delayed_work(system_freezable_wq, &(tz->poll_queue),
-                                     round_jiffies(msecs_to_jiffies(delay)));
+               mod_delayed_work(system_freezable_wq, &tz->poll_queue,
+                                round_jiffies(msecs_to_jiffies(delay)));
+       else if (delay)
+               mod_delayed_work(system_freezable_wq, &tz->poll_queue,
+                                msecs_to_jiffies(delay));
        else
-               queue_delayed_work(system_freezable_wq, &(tz->poll_queue),
-                                     msecs_to_jiffies(delay));
+               cancel_delayed_work(&tz->poll_queue);
  }
  
 -static void thermal_zone_device_passive(struct thermal_zone_device *tz,
 -                                      int temp, int trip_temp, int trip)
 -{
 -      int trend = 0;
 -      struct thermal_cooling_device_instance *instance;
 -      struct thermal_cooling_device *cdev;
 -      long state, max_state;
 -
 -      /*
 -       * Above Trip?
 -       * -----------
 -       * Calculate the thermal trend (using the passive cooling equation)
 -       * and modify the performance limit for all passive cooling devices
 -       * accordingly.  Note that we assume symmetry.
 -       */
 -      if (temp >= trip_temp) {
 -              tz->passive = true;
 -
 -              trend = (tz->tc1 * (temp - tz->last_temperature)) +
 -                      (tz->tc2 * (temp - trip_temp));
 -
 -              /* Heating up? */
 -              if (trend > 0) {
 -                      list_for_each_entry(instance, &tz->cooling_devices,
 -                                          node) {
 -                              if (instance->trip != trip)
 -                                      continue;
 -                              cdev = instance->cdev;
 -                              cdev->ops->get_cur_state(cdev, &state);
 -                              cdev->ops->get_max_state(cdev, &max_state);
 -                              if (state++ < max_state)
 -                                      cdev->ops->set_cur_state(cdev, state);
 -                      }
 -              } else if (trend < 0) { /* Cooling off? */
 -                      list_for_each_entry(instance, &tz->cooling_devices,
 -                                          node) {
 -                              if (instance->trip != trip)
 -                                      continue;
 -                              cdev = instance->cdev;
 -                              cdev->ops->get_cur_state(cdev, &state);
 -                              cdev->ops->get_max_state(cdev, &max_state);
 -                              if (state > 0)
 -                                      cdev->ops->set_cur_state(cdev, --state);
 -                      }
 -              }
 -              return;
 -      }
 -
 -      /*
 -       * Below Trip?
 -       * -----------
 -       * Implement passive cooling hysteresis to slowly increase performance
 -       * and avoid thrashing around the passive trip point.  Note that we
 -       * assume symmetry.
 -       */
 -      list_for_each_entry(instance, &tz->cooling_devices, node) {
 -              if (instance->trip != trip)
 -                      continue;
 -              cdev = instance->cdev;
 -              cdev->ops->get_cur_state(cdev, &state);
 -              cdev->ops->get_max_state(cdev, &max_state);
 -              if (state > 0)
 -                      cdev->ops->set_cur_state(cdev, --state);
 -              if (state == 0)
 -                      tz->passive = false;
 -      }
 -}
 -
  static void thermal_zone_device_check(struct work_struct *work)
  {
        struct thermal_zone_device *tz = container_of(work, struct
Simple merge
Simple merge
diff --cc fs/gfs2/super.c
Simple merge
diff --cc mm/slab.c
Simple merge
Simple merge
diff --cc net/core/dst.c
Simple merge
Simple merge
Simple merge