hc
2023-12-11 6778948f9de86c3cfaf36725a7c87dcff9ba247f
kernel/drivers/gpu/drm/i915/display/intel_sprite.c
....@@ -118,8 +118,7 @@
118118 "PSR idle timed out 0x%x, atomic update may fail\n",
119119 psr_status);
120120
121
- if (!IS_ENABLED(CONFIG_PREEMPT_RT))
122
- local_irq_disable();
121
+ local_irq_disable();
123122
124123 crtc->debug.min_vbl = min;
125124 crtc->debug.max_vbl = max;
....@@ -144,13 +143,11 @@
144143 break;
145144 }
146145
147
- if (!IS_ENABLED(CONFIG_PREEMPT_RT))
148
- local_irq_enable();
146
+ local_irq_enable();
149147
150148 timeout = schedule_timeout(timeout);
151149
152
- if (!IS_ENABLED(CONFIG_PREEMPT_RT))
153
- local_irq_disable();
150
+ local_irq_disable();
154151 }
155152
156153 finish_wait(wq, &wait);
....@@ -183,8 +180,7 @@
183180 return;
184181
185182 irq_disable:
186
- if (!IS_ENABLED(CONFIG_PREEMPT_RT))
187
- local_irq_disable();
183
+ local_irq_disable();
188184 }
189185
190186 /**
....@@ -222,8 +218,7 @@
222218 new_crtc_state->uapi.event = NULL;
223219 }
224220
225
- if (!IS_ENABLED(CONFIG_PREEMPT_RT))
226
- local_irq_enable();
221
+ local_irq_enable();
227222
228223 if (intel_vgpu_active(dev_priv))
229224 return;