mirror of
https://github.com/AuxXxilium/linux_dsm_epyc7002.git
synced 2025-01-19 02:36:25 +07:00
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: Amit Shah <amit.shah@redhat.com> Signed-off-by: Rusty Russell <rusty@rustcorp.com.au>
This commit is contained in:
parent
373445d02b
commit
6062829fcd
@ -30,11 +30,11 @@ static DEFINE_IDA(rng_index_ida);
|
|||||||
struct virtrng_info {
|
struct virtrng_info {
|
||||||
struct hwrng hwrng;
|
struct hwrng hwrng;
|
||||||
struct virtqueue *vq;
|
struct virtqueue *vq;
|
||||||
unsigned int data_avail;
|
|
||||||
struct completion have_data;
|
struct completion have_data;
|
||||||
bool busy;
|
|
||||||
char name[25];
|
char name[25];
|
||||||
|
unsigned int data_avail;
|
||||||
int index;
|
int index;
|
||||||
|
bool busy;
|
||||||
};
|
};
|
||||||
|
|
||||||
static bool probe_done;
|
static bool probe_done;
|
||||||
|
Loading…
Reference in New Issue
Block a user