i915: fix invalid opcode exception on cpus without clflush
authorKyle McMartin <kyle@mcmartin.ca>
Thu, 17 Jan 2008 23:51:56 +0000 (18:51 -0500)
committerEric Anholt <eric@anholt.net>
Fri, 18 Jan 2008 00:55:44 +0000 (16:55 -0800)
commitc6f175cbea1dba3fc26426243acc55b89b8a8064
treecdf5d0b2106e9afef173d96b92c21d72ff40095a
parent44a9fa8cc6c7d598163d1885bf69e4bf747a004b
i915: fix invalid opcode exception on cpus without clflush

i915_flush_ttm was unconditionally executing a clflush instruction
to (obviously) flush the cache. Instead, check if the cpu supports
clflush, and if not, fall back to calling wbinvd to flush the entire
cache.

Signed-off-by: Kyle McMartin <kmcmartin@redhat.com>
linux-core/i915_buffer.c