From: Richard Kennedy <richard@rsk.demon.co.uk>
To: David Airlie <airlied@linux.ie>
Cc: lkml <linux-kernel@vger.kernel.org>, dri-devel@lists.freedesktop.org
Subject: [PATCH] drm: reorder drm_open_hash to remove padding on 64 bit builds
Date: Tue, 01 Mar 2011 14:09:16 +0000 [thread overview]
Message-ID: <1298988556.2030.4.camel@castor.rsk> (raw)
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;
};
reply other threads:[~2011-03-01 14:09 UTC|newest]
Thread overview: [no followups] expand[flat|nested] mbox.gz Atom feed
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=1298988556.2030.4.camel@castor.rsk \
--to=richard@rsk.demon.co.uk \
--cc=airlied@linux.ie \
--cc=dri-devel@lists.freedesktop.org \
--cc=linux-kernel@vger.kernel.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
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®