From a1780925fb461c736bae7e51de0d3a1e909548f2 Mon Sep 17 00:00:00 2001 From: Keith Whitwell Date: Tue, 22 Apr 2003 11:31:55 +0000 Subject: Move a chunk of gamma-specific code out of drm_dma.h. Remove unused 'DRM_FLAG_NOCTX' option. --- linux/gamma_context.h | 11 +++++------ 1 file changed, 5 insertions(+), 6 deletions(-) (limited to 'linux/gamma_context.h') diff --git a/linux/gamma_context.h b/linux/gamma_context.h index f5d2993c..9e4b913f 100644 --- a/linux/gamma_context.h +++ b/linux/gamma_context.h @@ -173,12 +173,11 @@ int DRM(context_switch)(drm_device_t *dev, int old, int new) return -EINVAL; } - if (DRM(flags) & DRM_FLAG_NOCTX) { - DRM(context_switch_complete)(dev, new); - } else { - sprintf(buf, "C %d %d\n", old, new); - DRM(write_string)(dev, buf); - } + /* This causes the X server to wake up & do a bunch of hardware + * interaction to actually effect the context switch. + */ + sprintf(buf, "C %d %d\n", old, new); + DRM(write_string)(dev, buf); atomic_dec(&q->use_count); -- cgit v1.2.3