# boost\_cpu
Source: [https://docs.qualcomm.com/doc/80-PK177-134/topic/qape_boost_cpu.html](https://docs.qualcomm.com/doc/80-PK177-134/topic/qape_boost_cpu.html)
Adds the virtual utilization on all available CPUs by a
percentage specified by the input parameter. This load is used to calculate the CPU frequency,
and a higher load result in a higher CPU frequency. The API call lasts for a duration of
2 sec.
This helps to provide a pulse boost (higher CPU frequency) for the application when a sudden
increase in CPU load is expected. For example, scene changes in a CPU heavy game.
boost_cpu()Copy to clipboard
##
Usage guidance
This API needs to be used when the application expects a load increase in the immediate
future, causing the application to miss a deadline (such as a vsync). Since the API call
lasts 2 sec, this hint needs to be called again if the application requires an
extended boost duration. The expectation is for the underlying CPU DCVS software to latch
onto the right load requirement immediately after the burst of load increase. Hence, this
API is not expected to be called repeatedly, but only to prime the underlying CPU DCVS
for the upcoming sudden burst of load to account for an increase in CPU load ahead of time.
Negative boost can be used to reduce utilization for custom low-power use cases.
Note: This API can only be invoked 3 times in a 10 sec interval.
Note: The boost\_cpu API is intended only for OEM use. There is no third-party support.
## Parameters
| Parameters | API type | Data type | Description |
| --- | --- | --- | --- |
| boost\_val | Java | int | Boost the utilization on CPU by boost\_val%. This is the amount of
CPU utilization that is boosted.
Valid range is -50% to 400% (a negative
value reduces the task utilization). |
| boost\_val | Native | int32 | Boost the utilization on CPU by boost\_val%. This is the amount of
CPU utilization that is boosted.
Valid range is -50% to 400% (a negative
value reduces the task utilization). |
| ret\_val | Native | int8\_t& | On success this is the actual return value from the API.