提交 6062829f 编写于 作者: A Amit Shah 提交者: Rusty Russell

virtio: rng: re-arrange struct elements for better packing

Re-arrange the elements of the virtrng_info struct to pack it better.
Signed-off-by: NAmit Shah <amit.shah@redhat.com>
Signed-off-by: NRusty Russell <rusty@rustcorp.com.au>
上级 373445d0
......@@ -30,11 +30,11 @@ static DEFINE_IDA(rng_index_ida);
struct virtrng_info {
struct hwrng hwrng;
struct virtqueue *vq;
unsigned int data_avail;
struct completion have_data;
bool busy;
char name[25];
unsigned int data_avail;
int index;
bool busy;
};
static bool probe_done;
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册