* [PATCH] drm: reorder drm_open_hash to remove padding on 64 bit builds
@ 2011-03-01 14:09 Richard Kennedy
0 siblings, 0 replies; only message in thread
From: Richard Kennedy @ 2011-03-01 14:09 UTC (permalink / raw)
To: David Airlie; +Cc: lkml, dri-devel
Remove 8 bytes of padding on 64 bit builds to reduce the size of
drm_open_hash to 24 bytes, which also shrinks drm_object_file by 24
bytes (136 -> 112) allowing it to fit in one fewer cache lines and a
smaller slab.
Signed-off-by: Richard Kennedy <richard@rsk.demon.co.uk>
---
patch against v2.6.38-rc6
compiled & tested on x86_64 with nouveau.
regards
Richard
diff --git a/include/drm/drm_hashtab.h b/include/drm/drm_hashtab.h
index 0af087a..ff2ab48 100644
--- a/include/drm/drm_hashtab.h
+++ b/include/drm/drm_hashtab.h
@@ -48,8 +48,8 @@ struct drm_open_hash {
unsigned int size;
unsigned int order;
unsigned int fill;
- struct hlist_head *table;
int use_vmalloc;
+ struct hlist_head *table;
};
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2011-03-01 14:09 UTC | newest]
Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2011-03-01 14:09 [PATCH] drm: reorder drm_open_hash to remove padding on 64 bit builds Richard Kennedy
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox
all inboxes | Powered by JetHome®