drm: remove unused components of drm structures
authorDave Airlie <airlied@starflyer.(none)>
Mon, 24 Oct 2005 08:45:11 +0000 (18:45 +1000)
committerDave Airlie <airlied@linux.ie>
Mon, 24 Oct 2005 08:45:11 +0000 (18:45 +1000)
These haven't been used in quite a long time, takes 1K buffer out of structures.

Signed-off-by: Dave Airlie <airlied@linux.ie>
drivers/char/drm/drmP.h
drivers/char/drm/drm_fops.c

index 255a21783d106bf0bfcb88b3d87454e6a5e1a3e2..3dc3c9d79ae423d69a7c0fd9c59cc8d02b25b830 100644 (file)
 #define DRM_KERNEL_CONTEXT    0         /**< Change drm_resctx if changed */
 #define DRM_RESERVED_CONTEXTS 1         /**< Change drm_resctx if changed */
 #define DRM_LOOPING_LIMIT     5000000
-#define DRM_BSZ                      1024 /**< Buffer size for /dev/drm? output */
 #define DRM_TIME_SLICE       (HZ/20)  /**< Time slice for GLXContexts */
 #define DRM_LOCK_SLICE       1 /**< Time slice for lock, in jiffies */
 
@@ -707,10 +706,6 @@ typedef struct drm_device {
        cycles_t ctx_start;
        cycles_t lck_start;
 
-       char buf[DRM_BSZ];              /**< Output buffer */
-       char *buf_rp;                   /**< Read pointer */
-       char *buf_wp;                   /**< Write pointer */
-       char *buf_end;                  /**< End pointer */
        struct fasync_struct *buf_async;/**< Processes waiting for SIGIO */
        wait_queue_head_t buf_readers;  /**< Processes waiting to read */
        wait_queue_head_t buf_writers;  /**< Processes waiting to ctx switch */
index e0124a9ba14a41457b4f4f382880876ec19c990a..bf0a740122bf815cd3fbc9a7ed3710cb98af6848 100644 (file)
@@ -96,9 +96,6 @@ static int drm_setup(drm_device_t * dev)
        dev->ctx_start = 0;
        dev->lck_start = 0;
 
-       dev->buf_rp = dev->buf;
-       dev->buf_wp = dev->buf;
-       dev->buf_end = dev->buf + DRM_BSZ;
        dev->buf_async = NULL;
        init_waitqueue_head(&dev->buf_readers);
        init_waitqueue_head(&dev->buf_writers);