Commit 1eac8877 authored by David Herrmann's avatar David Herrmann Committed by Dave Airlie

drm: drop i386 verification

Linux doesn't run on i386, anymore. See:

    commit d55c5a93
    Author: H. Peter Anvin <hpa@linux.intel.com>
    Date:   Wed Nov 28 11:50:24 2012 -0800

        x86, 386 removal: Remove CONFIG_CMPXCHG

        All 486+ CPUs support CMPXCHG, so remove the fallback 386 support
        code.

Furthermore, as the commit-message states, all 486+ CPUs support the
CMPXCHG instruction and thus even legacy DRM can run fine.

Drop the now superfluous "x86 == 3" check.
Signed-off-by: default avatarDavid Herrmann <dh.herrmann@gmail.com>
Signed-off-by: default avatarDave Airlie <airlied@redhat.com>
parent 344f4b0f
...@@ -157,10 +157,6 @@ int drm_stub_open(struct inode *inode, struct file *filp) ...@@ -157,10 +157,6 @@ int drm_stub_open(struct inode *inode, struct file *filp)
*/ */
static int drm_cpu_valid(void) static int drm_cpu_valid(void)
{ {
#if defined(__i386__)
if (boot_cpu_data.x86 == 3)
return 0; /* No cmpxchg on a 386 */
#endif
#if defined(__sparc__) && !defined(__sparc_v9__) #if defined(__sparc__) && !defined(__sparc_v9__)
return 0; /* No cmpxchg before v9 sparc. */ return 0; /* No cmpxchg before v9 sparc. */
#endif #endif
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment