diff options
| author | Dmitry Safonov <[email protected]> | 2019-12-13 00:06:01 +0000 |
|---|---|---|
| committer | Greg Kroah-Hartman <[email protected]> | 2019-12-17 14:48:51 +0100 |
| commit | 7e5ed9f5e012f21a1514edcf8c35b9b4cfbd96c3 (patch) | |
| tree | cb36e30cdce1eae70b8eb1934e129731f84ae7e5 /tools/perf/scripts/python/bin | |
| parent | f06327d15a1a6f92ca947adb2f0059425885caae (diff) | |
serial: Move sysrq members above
At the current place members those follow are:
: upf_t flags;
: upstat_t status;
: int hw_stopped;
: unsigned int mctrl;
: unsigned int timeout;
: unsigned int type;
: const struct uart_ops *ops;
Together, they give (*ops) 8-byte align on 64-bit platforms.
And `sysrq_ch` introduces 4-byte padding.
On the other side, above:
: struct device *dev;
: unsigned char hub6;
: unsigned char suspended;
: unsigned char unused[2];
: const char *name;
Adds another 4-byte padding.
Moving sysrq members just before `hub6` allows to save 8 bytes
per-uart_port on 64-bit platforms:
On my gcc, x86_64 sizeof(struct uart_port) goes from 528 to 520.
Signed-off-by: Dmitry Safonov <[email protected]>
Link: https://lore.kernel.org/r/[email protected]
Signed-off-by: Greg Kroah-Hartman <[email protected]>
Diffstat (limited to 'tools/perf/scripts/python/bin')
0 files changed, 0 insertions, 0 deletions