Skip to content

Commit c9b83cb

Browse files
Atul Kumar Pantrafaeljw
authored andcommitted
PM: EM: Documentation: Fix typos in example driver code
Fix the API name to free the allocated table in the example driver code that modifies the EM. Also fix the passing of correct table when updating the cost. Signed-off-by: Atul Kumar Pant <[email protected]> Link: https://patch.msgid.link/[email protected] Signed-off-by: Rafael J. Wysocki <[email protected]>
1 parent 7330e00 commit c9b83cb

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

Documentation/power/energy-model.rst

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -381,17 +381,17 @@ up periodically to check the temperature and modify the EM data::
381381
26 rcu_read_unlock();
382382
27
383383
28 /* Calculate 'cost' values for EAS */
384-
29 ret = em_dev_compute_costs(dev, table, pd->nr_perf_states);
384+
29 ret = em_dev_compute_costs(dev, new_table, pd->nr_perf_states);
385385
30 if (ret) {
386386
31 dev_warn(dev, "EM: compute costs failed %d\n", ret);
387-
32 em_free_table(em_table);
387+
32 em_table_free(em_table);
388388
33 return;
389389
34 }
390390
35
391391
36 ret = em_dev_update_perf_domain(dev, em_table);
392392
37 if (ret) {
393393
38 dev_warn(dev, "EM: update failed %d\n", ret);
394-
39 em_free_table(em_table);
394+
39 em_table_free(em_table);
395395
40 return;
396396
41 }
397397
42

0 commit comments

Comments
 (0)