mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
synced 2026-04-30 22:50:54 -04:00
drm/xe/vm : Remove duplicate assignment of XE_VM_FLAG_LR_MODE flag.
vm->flags are already assigned with passed flags. Remove the redundant assignment. Cc: Matthew Brost <matthew.brost@intel.com> Signed-off-by: Himal Prasad Ghimiray <himal.prasad.ghimiray@intel.com> Reviewed: Matthew Brost <matthew.brost@intel.com> Link: https://patchwork.freedesktop.org/patch/msgid/20240307065213.1968688-1-himal.prasad.ghimiray@intel.com Signed-off-by: Rodrigo Vivi <rodrigo.vivi@intel.com>
This commit is contained in:
committed by
Rodrigo Vivi
parent
1997eeeac5
commit
bd415be89e
@@ -1386,9 +1386,8 @@ struct xe_vm *xe_vm_create(struct xe_device *xe, u32 flags)
|
||||
vm->batch_invalidate_tlb = true;
|
||||
}
|
||||
|
||||
if (flags & XE_VM_FLAG_LR_MODE) {
|
||||
if (vm->flags & XE_VM_FLAG_LR_MODE) {
|
||||
INIT_WORK(&vm->preempt.rebind_work, preempt_rebind_work_func);
|
||||
vm->flags |= XE_VM_FLAG_LR_MODE;
|
||||
vm->batch_invalidate_tlb = false;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user