diff options
author | Thomas Hellstrom <thomas@tungstengraphics.com> | 2006-06-08 13:56:35 +0000 |
---|---|---|
committer | Thomas Hellstrom <thomas@tungstengraphics.com> | 2006-06-08 13:56:35 +0000 |
commit | dde85024f2d2dc7505ae9b033b11bc3233e18e1f (patch) | |
tree | 661466d4cee656375ff90860df84de2abf39bd96 /linux-core/drm_hashtab.h | |
parent | 3092e7ec12ca07a45385a015dc6ab997770f42bb (diff) |
Backport the trunk hlist hash table implementation. Enable libdrmdrm-ttm_20060608drm-ttm-20060621drm-ttm-branch
sched_yeild() Bump i915 driver date an patchlevel.
Diffstat (limited to 'linux-core/drm_hashtab.h')
-rw-r--r-- | linux-core/drm_hashtab.h | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/linux-core/drm_hashtab.h b/linux-core/drm_hashtab.h index 907161328..580a02ed3 100644 --- a/linux-core/drm_hashtab.h +++ b/linux-core/drm_hashtab.h @@ -1,6 +1,6 @@ /************************************************************************** * - * Copyright 2006 Tungsten Graphics, Inc., Steamboat Springs, CO. USA. + * Copyright 2006 Tungsten Graphics, Inc., Bismack, ND. USA. * All Rights Reserved. * * Permission is hereby granted, free of charge, to any person obtaining a @@ -35,8 +35,10 @@ #ifndef DRM_HASHTAB_H #define DRM_HASHTAB_H +#define drm_hash_entry(_a1, _a2, _a3) list_entry(_a1, _a2, _a3) + typedef struct drm_hash_item{ - struct list_head head; + struct hlist_node head; unsigned long key; } drm_hash_item_t; @@ -44,7 +46,7 @@ typedef struct drm_open_hash{ unsigned int size; unsigned int order; unsigned int fill; - struct list_head *table; + struct hlist_head *table; } drm_open_hash_t; |