Skip to content

Commit

Permalink
virtio: rng: re-arrange struct elements for better packing
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Amit Shah authored and Rusty Russell committed Jul 27, 2014
1 parent 373445d commit 6062829
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions drivers/char/hw_random/virtio-rng.c
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down

0 comments on commit 6062829

Please sign in to comment.