History

Merge branches 'pm-sleep' and 'pm-devfreq'

* pm-sleep: PM / hibernate: fix typo "reserverd_size" -> "reserved_size" Documentation: power: Drop reference to interface.rst * pm-devfreq: Revert "PM / devfreq: Modify the device name as devfreq(X) for sysfs"

Rafael J. Wysocki committed 6 years ago

Commit 189c6963 parents f5739cb b0c609a 1df97a03 files · +2 −5Browse files

Unified · Split

3 files
  1. Documentation/power/index.rst +0 −1
  2. drivers/devfreq/devfreq.c +1 −3
  3. kernel/power/snapshot.c +1 −1
Documentation/power/index.rst+0−1
@@ -13,7 +13,6 @@ Power Management · 12 unmodified lines
1313 drivers-testing
1414 energy-model
1515 freezing-of-tasks
16− interface
1716 opp
1817 pci
1918 pm_qos_interface
drivers/devfreq/devfreq.c+1−3
@@ -738,7 +738,6 @@ struct devfreq *devfreq_add_device(struct device *dev, · 737 unmodified lines
738738 {
739739 struct devfreq *devfreq;
740740 struct devfreq_governor *governor;
741− static atomic_t devfreq_no = ATOMIC_INIT(-1);
742741 int err = 0;
743742
744743 if (!dev || !profile || !governor_name) {
@@ -800,8 +799,7 @@ struct devfreq *devfreq_add_device(struct device *dev, · 55 unmodified lines
800799 devfreq->suspend_freq = dev_pm_opp_get_suspend_opp_freq(dev);
801800 atomic_set(&devfreq->suspend_count, 0);
802801
803− dev_set_name(&devfreq->dev, "devfreq%d",
804− atomic_inc_return(&devfreq_no));
802+ dev_set_name(&devfreq->dev, "%s", dev_name(dev));
805803 err = device_register(&devfreq->dev);
806804 if (err) {
807805 mutex_unlock(&devfreq->lock);
kernel/power/snapshot.c+1−1
@@ -1681,7 +1681,7 @@ static unsigned long minimum_image_size(unsigned long saveable) · 1680 unmodified lines
16811681 * hibernation for allocations made while saving the image and for device
16821682 * drivers, in case they need to allocate memory from their hibernation
16831683 * callbacks (these two numbers are given by PAGES_FOR_IO (which is a rough
1684− * estimate) and reserverd_size divided by PAGE_SIZE (which is tunable through
1684+ * estimate) and reserved_size divided by PAGE_SIZE (which is tunable through
16851685 * /sys/power/reserved_size, respectively). To make this happen, we compute the
16861686 * total number of available page frames and allocate at least
16871687 *