Add a boost to NNAPI DarwiNN HAL for better perf&power

See http://shortn/_X7vYHND2xN for testing with various NN models
faster execution of NNAPI results in less execution time and
in turn, less total power consumed.

Bug: 183576817
Test: adb push'd rc file to a device
      `cat /dev/cpuctl/nnapi-hal/cpu.uclamp.min` == 15.00
      ran MLPerf, got better scores

Change-Id: I398c3741fc46958f95a9b608a27b52da47c69597
This commit is contained in:
Franklin He 2021-04-26 11:26:35 +08:00
parent f65dc0799c
commit 8ac9fa6194

View file

@ -178,6 +178,9 @@ on init
# start watchdogd # start watchdogd
start watchdogd start watchdogd
# Add a boost for NNAPI HAL
write /dev/cpuctl/nnapi-hal/cpu.uclamp.min 15
# For GKI kernel, no device specific modules # For GKI kernel, no device specific modules
on init on init
setprop vendor.device.modules.ready 1 setprop vendor.device.modules.ready 1