crc32c-intel: replace SIGILL approach with cpuid
authorJens Axboe <jaxboe@fusionio.com>
Tue, 29 Jun 2010 08:07:13 +0000 (10:07 +0200)
committerJens Axboe <jaxboe@fusionio.com>
Tue, 29 Jun 2010 08:07:13 +0000 (10:07 +0200)
commite0ab5f977075ec2f8ad42378c95eb800a611f0ef
tree1afaed78eb34a9fed4482f0783293e2a9424264c
parent10accd7cf68af21ef4831528626a75ba7a06ce81
crc32c-intel: replace SIGILL approach with cpuid

Some operating systems log illegal instructions, lets try and
be a bit nicer and use cpuid to identify the presence of
SSE4.2 which is needed to support the hw crc32c instruction.

Signed-off-by: Jens Axboe <jaxboe@fusionio.com>
crc/crc32c-intel.c