Skip to content

Commit 32fc01a

Browse files
hoshinolinajannau
authored andcommitted
drm/asahi: event: Initialize stamps to different values
Makes debugging a bit easier. Signed-off-by: Asahi Lina <lina@asahilina.net>
1 parent e0b8109 commit 32fc01a

1 file changed

Lines changed: 6 additions & 0 deletions

File tree

drivers/gpu/drm/asahi/event.rs

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -150,6 +150,12 @@ impl EventManager {
150150
owners,
151151
};
152152

153+
for slot in 0..NUM_EVENTS {
154+
inner.stamps[slot as usize]
155+
.0
156+
.store((slot as u32) << 24, Ordering::Relaxed);
157+
}
158+
153159
Ok(EventManager {
154160
alloc: slotalloc::SlotAllocator::new(
155161
NUM_EVENTS,

0 commit comments

Comments
 (0)