svn commit: r189858 - in stable/7/sys: . contrib/pf dev/ath/ath_hal
dev/cxgb dev/drm
Robert Noland
rnoland at FreeBSD.org
Sun Mar 15 10:24:50 PDT 2009
Author: rnoland
Date: Sun Mar 15 17:24:48 2009
New Revision: 189858
URL: http://svn.freebsd.org/changeset/base/189858
Log:
Merge r189561
There is no need to sync these buffers to swap.
Modified:
stable/7/sys/ (props changed)
stable/7/sys/contrib/pf/ (props changed)
stable/7/sys/dev/ath/ath_hal/ (props changed)
stable/7/sys/dev/cxgb/ (props changed)
stable/7/sys/dev/drm/drm_bufs.c
Modified: stable/7/sys/dev/drm/drm_bufs.c
==============================================================================
--- stable/7/sys/dev/drm/drm_bufs.c Sun Mar 15 17:23:46 2009 (r189857)
+++ stable/7/sys/dev/drm/drm_bufs.c Sun Mar 15 17:24:48 2009 (r189858)
@@ -1052,11 +1052,12 @@ int drm_mapbufs(struct drm_device *dev,
vaddr = round_page((vm_offset_t)vms->vm_daddr + MAXDSIZ);
#if __FreeBSD_version >= 600023
retcode = vm_mmap(&vms->vm_map, &vaddr, size, PROT_READ | PROT_WRITE,
- VM_PROT_ALL, MAP_SHARED, OBJT_DEVICE, dev->devnode, foff);
+ VM_PROT_ALL, MAP_SHARED | MAP_NOSYNC, OBJT_DEVICE,
+ dev->devnode, foff);
#else
retcode = vm_mmap(&vms->vm_map, &vaddr, size, PROT_READ | PROT_WRITE,
- VM_PROT_ALL, MAP_SHARED, SLIST_FIRST(&dev->devnode->si_hlist),
- foff);
+ VM_PROT_ALL, MAP_SHARED | MAP_NOSYNC,
+ SLIST_FIRST(&dev->devnode->si_hlist), foff);
#endif
if (retcode)
goto done;
More information about the svn-src-stable
mailing list