Commit 7fc775f
thermal: intel_powerclamp: Use bitmap_zalloc/bitmap_free when applicable
'cpu_clamping_mask' is a bitmap. So use 'bitmap_zalloc()' and
'bitmap_free()' to simplify code, improve the semantic of the code and
avoid some open-coded arithmetic in allocator arguments.
Signed-off-by: Christophe JAILLET <christophe.jaillet@wanadoo.fr>
Signed-off-by: Rafael J. Wysocki <rafael.j.wysocki@intel.com>1 parent 9e1ff30 commit 7fc775f
1 file changed
Lines changed: 3 additions & 5 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
705 | 705 | | |
706 | 706 | | |
707 | 707 | | |
708 | | - | |
709 | 708 | | |
710 | | - | |
711 | | - | |
| 709 | + | |
712 | 710 | | |
713 | 711 | | |
714 | 712 | | |
| |||
753 | 751 | | |
754 | 752 | | |
755 | 753 | | |
756 | | - | |
| 754 | + | |
757 | 755 | | |
758 | 756 | | |
759 | 757 | | |
| |||
764 | 762 | | |
765 | 763 | | |
766 | 764 | | |
767 | | - | |
| 765 | + | |
768 | 766 | | |
769 | 767 | | |
770 | 768 | | |
| |||
0 commit comments