diff options
author | Jonathan Gray <jsg@cvs.openbsd.org> | 2019-07-01 03:28:06 +0000 |
---|---|---|
committer | Jonathan Gray <jsg@cvs.openbsd.org> | 2019-07-01 03:28:06 +0000 |
commit | 4d3a4eecff8499a8e9cf89161270b92227b865ee (patch) | |
tree | 2e77ec0263373541af4a1c8903cd5be3329e5460 /sys/dev/pci | |
parent | b115fcc5563e6f9c9b513d44ade7502fb44692f9 (diff) |
revert local changes in code under #ifdef __linux__
Diffstat (limited to 'sys/dev/pci')
-rw-r--r-- | sys/dev/pci/drm/i915/intel_breadcrumbs.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/sys/dev/pci/drm/i915/intel_breadcrumbs.c b/sys/dev/pci/drm/i915/intel_breadcrumbs.c index e53f95b0a4b..656a25725cf 100644 --- a/sys/dev/pci/drm/i915/intel_breadcrumbs.c +++ b/sys/dev/pci/drm/i915/intel_breadcrumbs.c @@ -858,11 +858,11 @@ int intel_engine_init_breadcrumbs(struct intel_engine_cs *engine) struct intel_breadcrumbs *b = &engine->breadcrumbs; struct task_struct *tsk; - mtx_init(&b->rb_lock, IPL_NONE); - mtx_init(&b->irq_lock, IPL_NONE); + spin_lock_init(&b->rb_lock); + spin_lock_init(&b->irq_lock); - timeout_set(&b->fake_irq, intel_breadcrumbs_fake_irq, engine); - timeout_set(&b->hangcheck, intel_breadcrumbs_hangcheck, engine); + timer_setup(&b->fake_irq, intel_breadcrumbs_fake_irq, 0); + timer_setup(&b->hangcheck, intel_breadcrumbs_hangcheck, 0); INIT_LIST_HEAD(&b->signals); |