return 0;
}
-
-/* Return current time (unit: millisecond) */
-int64_t pass_get_time_ms(void)
-{
- struct timeval now;
-
- gettimeofday(&now, NULL);
-
- return ((int64_t) now.tv_sec * 1000 + (int64_t) now.tv_usec / 1000);
-}
* These functions will be altered by the standard interface on later.
*/
int pass_get_cpu_stats(struct pass_policy *policy);
-int64_t pass_get_time_ms(void);
/***
* Functions for Nonstandard H/W resources
#include "pass.h"
#include "pass-gov.h"
-#include "pass-hal.h"
#include "core/device-notifier.h"
#include "core/config-parser.h"
#define PASS_LOCK "Lock"
#define PASS_UNLOCK "Unlock"
+static int64_t get_time_ms(void)
+{
+ struct timeval now;
+
+ gettimeofday(&now, NULL);
+
+ return ((int64_t) now.tv_sec * 1000 + (int64_t) now.tv_usec / 1000);
+}
+
/*
* is_pmqos_enabled - Check state of whether to support PM_QOS for scenario
* @policy: instance of pass_policy structure
_I("Lock '%s' scenario for '%s' resource\n",
name, cdata->res_name);
- scenario->list[index].locked_time = pass_get_time_ms();
+ scenario->list[index].locked_time = get_time_ms();
} else {
_I("UnLock '%s' scenario for '%s' resource (%lldms)\n",
name, cdata->res_name,
- (pass_get_time_ms() - scenario->list[index].locked_time));
+ (get_time_ms() - scenario->list[index].locked_time));
scenario->list[index].locked_time = 0;
}