]> www.infradead.org Git - users/jedix/linux-maple.git/commit
thermal: intel_powerclamp: Use bitmap_zalloc/bitmap_free when applicable
authorChristophe JAILLET <christophe.jaillet@wanadoo.fr>
Sun, 26 Sep 2021 07:17:20 +0000 (09:17 +0200)
committerRafael J. Wysocki <rafael.j.wysocki@intel.com>
Tue, 5 Oct 2021 14:40:22 +0000 (16:40 +0200)
commit7fc775ffebb93f2d556b4cb96345844885e16f60
treef7bdb0c34b078a7630a127ab6059c4c2744b4bd0
parent9e1ff307c779ce1f0f810c7ecce3d95bbae40896
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>
drivers/thermal/intel/intel_powerclamp.c