File tree Expand file tree Collapse file tree 1 file changed +4
-2
lines changed Expand file tree Collapse file tree 1 file changed +4
-2
lines changed Original file line number Diff line number Diff line change @@ -139,7 +139,7 @@ static u32 g4x_read_clock_frequency(struct intel_uncore *uncore)
139
139
return 1000000000 / 1024 ;
140
140
}
141
141
142
- static u32 gen2_read_clock_frequency (struct intel_uncore * uncore )
142
+ static u32 gen4_read_clock_frequency (struct intel_uncore * uncore )
143
143
{
144
144
/*
145
145
* PRMs say:
@@ -163,8 +163,10 @@ static u32 read_clock_frequency(struct intel_uncore *uncore)
163
163
return gen5_read_clock_frequency (uncore );
164
164
else if (IS_G4X (uncore -> i915 ))
165
165
return g4x_read_clock_frequency (uncore );
166
+ else if (GRAPHICS_VER (uncore -> i915 ) == 4 )
167
+ return gen4_read_clock_frequency (uncore );
166
168
else
167
- return gen2_read_clock_frequency ( uncore ) ;
169
+ return 0 ;
168
170
}
169
171
170
172
void intel_gt_init_clock_frequency (struct intel_gt * gt )
You can’t perform that action at this time.
0 commit comments