Skip to content

Commit 189c696

Browse files
committed
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"
3 parents f5739cb + b0c609a + 1df97a0 commit 189c696

File tree

3 files changed

+2
-5
lines changed

3 files changed

+2
-5
lines changed

Documentation/power/index.rst

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,6 @@ Power Management
1313
drivers-testing
1414
energy-model
1515
freezing-of-tasks
16-
interface
1716
opp
1817
pci
1918
pm_qos_interface

drivers/devfreq/devfreq.c

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -738,7 +738,6 @@ struct devfreq *devfreq_add_device(struct device *dev,
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,
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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1681,7 +1681,7 @@ static unsigned long minimum_image_size(unsigned long saveable)
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
*

0 commit comments

Comments
 (0)