This patch tunes T210 actmon to produce sensible load readings given
the usual tasks; Usually the tasks are relatively small (length of
tens of microseconds) and hence we only increase this slightly to
get better estimate in most use cases.
In addition, make K factor higher to give more weight for the old
measurement results to avoid overshoorting of scaling.
Bug
1580219
Change-Id: Ibaf66ee93a7971cf50211461d51009f624243069
Signed-off-by: Arto Merilainen <amerilainen@nvidia.com>
Reviewed-on: http://git-master/r/656132
(cherry picked from commit
38277c3c885ea07ebc07c02788a41fa21552315b)
Reviewed-on: http://git-master/r/658477
Reviewed-by: Automatic_Commit_Validation_User
return 0;
if (actmon->init == ACTMON_OFF) {
- actmon->usecs_per_sample = 10;
- actmon->k = 1;
+ if (tegra_get_chipid() == TEGRA_CHIPID_TEGRA21) {
+ actmon->usecs_per_sample = 20;
+ actmon->k = 3;
+ } else {
+ actmon->usecs_per_sample = 10;
+ actmon->k = 1;
+ }
}
actmon->clk = host_pdata->clk[1];