power: Make boostpulse_warned static
Change-Id: I8bd557c637402922702fcb75a1c0633947ded41a
diff --git a/power/power.c b/power/power.c
index b4ddd67..d75b405 100644
--- a/power/power.c
+++ b/power/power.c
@@ -44,7 +44,6 @@
struct power_module base;
pthread_mutex_t lock;
int boostpulse_fd;
- int boostpulse_warned;
char cpu0_hispeed_freq[10];
char cpu0_max_freq[10];
char cpu4_hispeed_freq[10];
@@ -60,7 +59,9 @@
PROFILE_HIGH_PERFORMANCE,
PROFILE_MAX
};
+
static enum power_profile_e current_power_profile = PROFILE_BALANCED;
+static bool boostpulse_warned = false;
/**********************************************************
*** HELPER FUNCTIONS
@@ -130,10 +131,10 @@
if (samsung_pwr->boostpulse_fd < 0) {
samsung_pwr->boostpulse_fd = open(BOOSTPULSE_PATH, O_WRONLY);
if (samsung_pwr->boostpulse_fd < 0) {
- if (!samsung_pwr->boostpulse_warned) {
+ if (!boostpulse_warned) {
strerror_r(errno, errno_str, sizeof(errno_str));
ALOGE("Error opening %s: %s\n", BOOSTPULSE_PATH, errno_str);
- samsung_pwr->boostpulse_warned = 1;
+ boostpulse_warned = true;
}
}
}
@@ -456,5 +457,4 @@
.lock = PTHREAD_MUTEX_INITIALIZER,
.boostpulse_fd = -1,
- .boostpulse_warned = 0,
};