diff options
author | Paul Mundt <lethal@linux-sh.org> | 2008-02-13 03:02:33 -0500 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@suse.de> | 2008-04-25 00:16:35 -0400 |
commit | 96f9bc373c83a67922dc32f358e8a3b3dd4e18a0 (patch) | |
tree | aa307e812edce8697c5419d34e1937c7e54b60a0 /drivers/usb/gadget/m66592-udc.h | |
parent | 135db0485cdfa808d69420889ca4a2fad8aed9df (diff) |
USB: m66592-udc: reduce size of data structure.
Poking around with pahole, we see that m66592 handily shoves a u16 in
between larger types on 2 separate occasions leaving us with 2 2-byte
holes:
struct m66592 {
...
/* size: 1196, cachelines: 38 */
/* sum members: 1192, holes: 2, sum holes: 4 */
/* last cacheline: 12 bytes */
}; /* definitions: 1 */
Pairing them gets back 4-bytes:
struct m66592 {
...
/* size: 1192, cachelines: 38 */
/* last cacheline: 8 bytes */
}; /* definitions: 1 */
Unfortunately it's not enough to save a cacheline with this massive
structure, but every byte helps.
Signed-off-by: Paul Mundt <lethal@linux-sh.org>
Signed-off-by: Yoshihiro Shimoda <shimoda.yoshihiro@renesas.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
Diffstat (limited to 'drivers/usb/gadget/m66592-udc.h')
-rw-r--r-- | drivers/usb/gadget/m66592-udc.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/usb/gadget/m66592-udc.h b/drivers/usb/gadget/m66592-udc.h index 17b792b7f6bf..be0a4c1f80a2 100644 --- a/drivers/usb/gadget/m66592-udc.h +++ b/drivers/usb/gadget/m66592-udc.h | |||
@@ -486,10 +486,10 @@ struct m66592 { | |||
486 | 486 | ||
487 | struct usb_request *ep0_req; /* for internal request */ | 487 | struct usb_request *ep0_req; /* for internal request */ |
488 | u16 ep0_data; /* for internal request */ | 488 | u16 ep0_data; /* for internal request */ |
489 | u16 old_vbus; | ||
489 | 490 | ||
490 | struct timer_list timer; | 491 | struct timer_list timer; |
491 | 492 | ||
492 | u16 old_vbus; | ||
493 | int scount; | 493 | int scount; |
494 | 494 | ||
495 | int old_dvsq; | 495 | int old_dvsq; |