Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit cace71b3 authored by Florian Tobias Schandinat's avatar Florian Tobias Schandinat
Browse files

viafb: use write combining for video ram



This can give a speed up of factor 6-9, which is quite notable.

Signed-off-by: default avatarFlorian Tobias Schandinat <FlorianSchandinat@gmx.de>
parent f33f6f0c
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -505,7 +505,7 @@ static int __devinit via_pci_setup_mmio(struct viafb_dev *vdev)
	ret = vdev->fbmem_len = viafb_get_fb_size_from_pci(vdev->chip_type);
	if (ret < 0)
		goto out_unmap;
	vdev->fbmem = ioremap_nocache(vdev->fbmem_start, vdev->fbmem_len);
	vdev->fbmem = ioremap_wc(vdev->fbmem_start, vdev->fbmem_len);
	if (vdev->fbmem == NULL) {
		ret = -ENOMEM;
		goto out_unmap;