@@ -96,6 +96,16 @@ static void lpmd_parse_state(xmlDoc *doc, xmlNode *a_node, lpmd_config_t *config
9696 else
9797 copy_user_string (tmp_value , state -> active_cpus , sizeof (state -> active_cpus ));
9898 }
99+ if (!strncmp ((const char * )cur_node -> name , "BalanceSliderAC" , strlen ("BalanceSliderAC" )))
100+ state -> balance_slider_ac = strtol (tmp_value , & pos , 10 );
101+ if (!strncmp ((const char * )cur_node -> name , "SliderOffsetAC" , strlen ("SliderOffsetAC" )))
102+ state -> slider_offset_ac = strtol (tmp_value , & pos , 10 );
103+
104+ if (!strncmp ((const char * )cur_node -> name , "BalanceSliderDC" , strlen ("BalanceSliderDC" )))
105+ state -> balance_slider_dc = strtol (tmp_value , & pos , 10 );
106+ if (!strncmp ((const char * )cur_node -> name , "SliderOffsetDC" , strlen ("SliderOffsetDC" )))
107+ state -> slider_offset_dc = strtol (tmp_value , & pos , 10 );
108+
99109 xmlFree (tmp_value );
100110 }
101111 }
@@ -106,9 +116,9 @@ static int is_wildcard(char *str)
106116{
107117 if (!str )
108118 return 1 ;
109- if (strncmp (str , "*" , strlen ("*" )))
119+ if (! strncmp (str , "*" , strlen ("*" )))
110120 return 1 ;
111- if (strncmp (str , " * " , strlen (" * " )))
121+ if (! strncmp (str , " * " , strlen (" * " )))
112122 return 1 ;
113123
114124 return 0 ;
@@ -191,6 +201,11 @@ static void lpmd_init_config(lpmd_config_t *config)
191201 config -> data .util_cpu = -1 ;
192202 config -> data .util_gfx = -1 ;
193203 config -> data .wlt_hint = -1 ;
204+ config -> balance_slider_def_ac = -1 ;
205+ config -> balance_slider_def_dc = -1 ;
206+ config -> slider_offset_def_ac = -1 ;
207+ config -> slider_offset_def_dc = -1 ;
208+ config -> wlt_hint_mask = -1 ;
194209}
195210
196211static int lpmd_fill_config (xmlDoc * doc , xmlNode * a_node , lpmd_config_t * lpmd_config )
@@ -229,6 +244,10 @@ static int lpmd_fill_config(xmlDoc *doc, xmlNode *a_node, lpmd_config_t *lpmd_co
229244 || (lpmd_config -> wlt_hint_enable != 1 && lpmd_config -> wlt_hint_enable != 0 ))
230245 goto err ;
231246 }
247+ else if (!strncmp ((const char * )cur_node -> name , "WLTHintMask" , strlen ("WLTHintMask" ))) {
248+ errno = 0 ;
249+ lpmd_config -> wlt_hint_mask = strtol (tmp_value , & pos , 10 );
250+ }
232251 else if (!strncmp ((const char * )cur_node -> name , "WLTHintPollEnable" , strlen ("WLtHintPollEnable" ))) {
233252 errno = 0 ;
234253 lpmd_config -> wlt_hint_poll_enable = strtol (tmp_value , & pos , 10 );
@@ -361,6 +380,23 @@ static int lpmd_fill_config(xmlDoc *doc, xmlNode *a_node, lpmd_config_t *lpmd_co
361380 errno = 0 ;
362381 lpmd_parse_states (doc , cur_node -> children , lpmd_config );
363382 }
383+ else if (!strncmp ((const char * )cur_node -> name , "BalancedSliderAC" , strlen ("BalancedSliderAC" ))) {
384+ errno = 0 ;
385+ lpmd_config -> balance_slider_def_ac = strtol (tmp_value , & pos , 10 );
386+
387+ }
388+ else if (!strncmp ((const char * )cur_node -> name , "BalancedSliderDC" , strlen ("BalancedSliderDC" ))) {
389+ errno = 0 ;
390+ lpmd_config -> balance_slider_def_dc = strtol (tmp_value , & pos , 10 );
391+ }
392+ else if (!strncmp ((const char * )cur_node -> name , "SliderOffsetAC" , strlen ("SliderOffsetAC" ))) {
393+ errno = 0 ;
394+ lpmd_config -> slider_offset_def_ac = strtol (tmp_value , & pos , 10 );
395+ }
396+ else if (!strncmp ((const char * )cur_node -> name , "SliderOffsetDC" , strlen ("SliderOffsetDC" ))) {
397+ errno = 0 ;
398+ lpmd_config -> slider_offset_def_dc = strtol (tmp_value , & pos , 10 );
399+ }
364400 else {
365401 if (!strncmp ((const char * )cur_node -> name , "HfiSuvEnable" , strlen ("HfiSuvEnable" ))) {
366402 lpmd_log_debug ("Ignore deprecated HfiSuvEnable setting\n" );
0 commit comments