13#include <Urm/UrmAPIs.h>
15#define UCLAMP_MIN_RES 0x00030000
16#define UCLAMP_BOOST_VAL 750
17#define TUNE_DURATION 5000 #duration in msec
20static void tune_uclamp_min() {
21 int32_t properties = 0;
23 properties = SET_REQUEST_PRIORITY(properties, REQ_PRIORITY_LOW);
24 properties = ADD_ALLOWED_MODE(properties, MODE_SUSPEND);
28 .mResCode = UCLAMP_MIN_RES,
33 .value = UCLAMP_BOOST_VAL,
38 int64_t handle =
tuneResources(TUNE_DURATION, properties, 1, resourceList);
40 printf(
"Request Could not be Sent to the Resource Tuner Server\n");
42 printf(
"Handle Returned is: %ld\n", handle);
48int32_t main(int32_t argc,
char* argv[]) {
int64_t tuneResources(int64_t duration, int32_t prop, int32_t numRes, SysResource *resourceList)
Tune Resource Values for finite or finite duration.
Used to store information regarding Resources / Tunables which need to be Provisioned as part of the ...