power: Change timer rate to 40ms for video encode
This change is specific to 8952, 8956 and 8976 targets. This is to reduce CPU scaling in encoding case. Change-Id: I72627311e1b60aeb29c6b83883932994ca75e53d
This commit is contained in:
parent
1c58bd0a02
commit
9fd3410d1b
|
@ -148,6 +148,7 @@ enum INTERACTIVE_TIMER_RATE_LVL_CPU0_8939 {
|
|||
TR_MS_CPU0_500 = 0x30CD,
|
||||
TR_MS_CPU0_100 = 0x30F5,
|
||||
TR_MS_CPU0_50 = 0x30FA,
|
||||
TR_MS_CPU0_40 = 0x30FB,
|
||||
TR_MS_CPU0_30 = 0x30FC,
|
||||
TR_MS_CPU0_20 = 0x30FD,
|
||||
};
|
||||
|
@ -158,6 +159,7 @@ enum INTERACTIVE_TIMER_RATE_LVL_CPU4_8939 {
|
|||
TR_MS_CPU4_500 = 0x3BCD,
|
||||
TR_MS_CPU4_100 = 0x3BF5,
|
||||
TR_MS_CPU4_50 = 0x3BFA,
|
||||
TR_MS_CPU4_40 = 0x3BFB,
|
||||
TR_MS_CPU4_30 = 0x3BFC,
|
||||
TR_MS_CPU4_20 = 0x3BFD,
|
||||
};
|
||||
|
|
|
@ -74,9 +74,6 @@ int power_hint_override(struct power_module *module, power_hint_t hint,
|
|||
int set_interactive_override(struct power_module *module, int on)
|
||||
{
|
||||
char governor[80];
|
||||
char tmp_str[NODE_MAX];
|
||||
struct video_encode_metadata_t video_encode_metadata;
|
||||
int rc;
|
||||
|
||||
ALOGI("Got set_interactive hint");
|
||||
|
||||
|
@ -161,6 +158,8 @@ static void process_video_encode_hint(void *metadata)
|
|||
(strlen(governor) == strlen(INTERACTIVE_GOVERNOR))) {
|
||||
/* Sched_load and migration_notif*/
|
||||
int resource_values[] = {INTERACTIVE_USE_SCHED_LOAD_OFF,
|
||||
TR_MS_CPU0_40,
|
||||
TR_MS_CPU4_40,
|
||||
INTERACTIVE_USE_MIGRATION_NOTIF_OFF};
|
||||
if (!video_encode_hint_sent) {
|
||||
perform_hint_action(video_encode_metadata.hint_id,
|
||||
|
|
Loading…
Reference in New Issue