devmem, x86: PAT Change /dev/mem mmap with O_SYNC to use UC_MINUS
authorvenkatesh.pallipadi@intel.com <venkatesh.pallipadi@intel.com>
Wed, 20 Aug 2008 23:45:52 +0000 (16:45 -0700)
committerIngo Molnar <mingo@elte.hu>
Thu, 21 Aug 2008 11:27:33 +0000 (13:27 +0200)
commit28df82ebab79c6a2b4295dd94fd8de88196a49df
treee206038eea131a943b08590b8440d6119875ff00
parentc15238df3b65e34fadb1021b0fb0d5aebc7c42c6
devmem, x86: PAT Change /dev/mem mmap with O_SYNC to use UC_MINUS

All kernel mappings like ioremap(), etc uses UC_MINUS as the type. /dev/mem
mappings with /dev/mem being opened with O_SYNC however was using UC,
resulting in a conflict with /dev/mem mmap failing. This seems to be
affecting some apps (one being flashrom) which are using O_SYNC and which were
working before.

Switch /dev/mem with O_SYNC also to UC_MINUS.

Signed-off-by: Venkatesh Pallipadi <venkatesh.pallipadi@intel.com>
Signed-off-by: Ingo Molnar <mingo@elte.hu>
arch/x86/mm/pat.c