]> git.baikalelectronics.ru Git - kernel.git/commit
uml: improve detection of host cmov
authorKarol Swietlicki <magotari@gmail.com>
Tue, 5 Feb 2008 06:30:38 +0000 (22:30 -0800)
committerLinus Torvalds <torvalds@woody.linux-foundation.org>
Tue, 5 Feb 2008 17:44:25 +0000 (09:44 -0800)
commitd50cfbf2471e1faf897eeea622928261162b86d9
tree218c05cfe030a2debdfe8dc66485ad2bec4c1bc3
parent2e26e9606278d6a6c5d96018e79fef2f93e75e52
uml: improve detection of host cmov

This patch introduces a new way of checking for the cmov instruction.  I use
signal handling instead of reading /proc/cpuinfo.

[ jdike - Fiddled the asm to make it obvious that it didn't mess with
any in-use registers and made test_for_host_cmov void ]

[akpm@linux-foundation.org: coding-style fixes]
Signed-off-by: Karol Swietlicki <magotari@gmail.com>
Signed-off-by: Jeff Dike <jdike@linux.intel.com>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
arch/um/include/common-offsets.h
arch/um/sys-i386/bugs.c