UPSTREAM: powercap/drivers/dtpm: Fix a double shift bug
The DTPM_POWER_LIMIT_FLAG is used for test_bit() etc which take a bit number so it should be bit 0. But currently it's set to BIT(0) then that is double shifted equivalent to BIT(BIT(0)). This doesn't cause a run time problem because it's done consistently. Fixes: a20d0ef97abf ("powercap/drivers/dtpm: Add API for dynamic thermal power management") Signed-off-by: Dan Carpenter <dan.carpenter@oracle.com> Acked-by: Daniel Lezcano <daniel.lezcano@linaro.org> Signed-off-by: Rafael J. Wysocki <rafael.j.wysocki@intel.com> Link: https://www.spinics.net/lists/linux-kernel-janitors/msg57003.html Bug: 182396925 Change-Id: I4245d8d0de695fa4c07916113df2097ec8ab8bcf (cherry picked from commit 2185c23071e2c1f26fbccb323aa831732540cfcc) Signed-off-by: Ram Chandrasekar <quic_rkumbako@quicinc.com>
This commit is contained in:

committed by
Greg Kroah-Hartman

parent
578572c48c
commit
7112d4320f
@@ -24,7 +24,7 @@
|
||||
#include <linux/slab.h>
|
||||
#include <linux/mutex.h>
|
||||
|
||||
#define DTPM_POWER_LIMIT_FLAG BIT(0)
|
||||
#define DTPM_POWER_LIMIT_FLAG 0
|
||||
|
||||
static const char *constraint_name[] = {
|
||||
"Instantaneous",
|
||||
|
Reference in New Issue
Block a user