Thread (7 messages) 7 messages, 3 authors, 2017-05-31

[RFC v1 2/3] interconnect: Add Qualcomm msm8916 interconnect provider driver

From: Georgi Djakov <hidden>
Date: 2017-05-16 14:59:09
Also in: linux-arm-msm, linux-devicetree, linux-pm, lkml

On 05/15/2017 07:01 PM, Geert Uytterhoeven wrote:
Hi Georgi,

On Mon, May 15, 2017 at 5:35 PM, Georgi Djakov [off-list ref] wrote:
quoted
--- /dev/null
+++ b/drivers/interconnect/qcom/interconnect_msm8916.c
quoted
+struct qcom_interconnect_node {
+       struct interconnect_node node;
+       unsigned int id;
4 byte gap due to alignment rules on 64-bit.
quoted
+       unsigned char *name;
+       struct interconnect_node *links[8];
+       int num_links;
+       int port;
+       int buswidth;
4 byte gap due to alignment rules.
quoted
+       u64 ib;
+       u64 ab;
+       u64 rate;
+};
You can avoid the gaps by putting members of the same size and alignment
together.
Thanks Geert, i will rearrange this to reduce the padding bytes!

BR,
Georgi
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help