@@ -17,42 +17,6 @@ unsigned int asv_table_ver = 0;
1717unsigned int main_rev ;
1818unsigned int sub_rev ;
1919
20- static void vclk_debug_dump_lut (struct vclk * vclk ) {
21- int i , j ;
22-
23- if (!vclk || !vclk -> lut ) {
24- pr_info ("[vclk-debug] no lut for vclk\n" );
25- return ;
26- }
27-
28- pr_info ("[vclk-debug] dump for vclk '%s': num_rates=%d, num_list=%d\n" ,
29- vclk -> name , vclk -> num_rates , vclk -> num_list );
30-
31- for (i = 0 ; i < vclk -> num_rates ; i ++ ) {
32- struct vclk_lut * l = & vclk -> lut [i ];
33-
34- pr_info ("[vclk-debug] lut[%02d]: rate=%u\n" , i , l -> rate );
35-
36- if (!l -> params ) {
37- pr_info ("[vclk-debug] params: (null)\n" );
38- continue ;
39- }
40-
41- pr_info ("[vclk-debug] params:" );
42- for (j = 0 ; j < vclk -> num_list ; j ++ ) {
43- pr_cont (" %d" , l -> params [j ]);
44- }
45-
46- pr_info ("[vclk-debug2] lut[%02d] rate=%u\n" , i , vclk -> lut [i ].rate );
47- for (j = 0 ; j < vclk -> num_list ; j ++ ){
48- pr_info ("[vclk-debug2] param[%02d] (clk_id=0x%x) = 0x%x\n" , j ,
49- vclk -> list [j ], vclk -> lut [i ].params [j ]);
50- }
51-
52- pr_cont ("\n" );
53- }
54- }
55-
5620static int vclk_add_level_clone (struct vclk * vclk , unsigned int new_rate ,
5721 int template_idx ) {
5822 int i , insert_idx ;
@@ -708,9 +672,6 @@ static int vclk_get_dfs_info(struct vclk *vclk) {
708672 vclk -> max_freq , vclk -> boot_freq , vclk -> resume_freq ,
709673 minmax_table ? "override" : "absent" );
710674
711- if (!strcmp (vclk -> name , "dvfs_cpucl2" ))
712- vclk_debug_dump_lut (vclk );
713-
714675 if (!strcmp (vclk -> name , "dvfs_g3d" )) {
715676 pr_info ("[vclk] dvfs_g3d boot_idx=%d resume_idx=%d table_ver=%u\n" ,
716677 dvfs_domain -> boot_level_idx , dvfs_domain -> resume_level_idx ,
@@ -719,17 +680,6 @@ static int vclk_get_dfs_info(struct vclk *vclk) {
719680 pr_info ("[vclk] g3d lut[%02d] rate=%u\n" , i , vclk -> lut [i ].rate );
720681 }
721682
722- vclk_debug_dump_lut (vclk );
723-
724- /*
725- if (!strcmp(vclk->name, "dvfs_cpucl2")) {
726- int tmpl = vclk->num_rates - 1;
727- unsigned int new_rate = 3200000;
728-
729- vclk_add_level_clone(vclk, new_rate, tmpl);
730- vclk_debug_dump_lut(vclk);
731- }
732- */
733683 return ret ;
734684
735685err_nomem_override :
0 commit comments