projects
/
GitHub
/
LineageOS
/
G12
/
android_kernel_amlogic_linux-4.9.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
373445d
)
virtio: rng: re-arrange struct elements for better packing
author
Amit Shah
<amit.shah@redhat.com>
Sat, 26 Jul 2014 22:03:01 +0000
(07:33 +0930)
committer
Rusty Russell
<rusty@rustcorp.com.au>
Sun, 27 Jul 2014 11:37:18 +0000
(21:07 +0930)
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>
drivers/char/hw_random/virtio-rng.c
patch
|
blob
|
blame
|
history
diff --git
a/drivers/char/hw_random/virtio-rng.c
b/drivers/char/hw_random/virtio-rng.c
index d8ffebdc2014d86baf0ee6a040d3025ebd3a077f..a1562841f539b8646edc1569148eed196fa685fb 100644
(file)
--- a/
drivers/char/hw_random/virtio-rng.c
+++ b/
drivers/char/hw_random/virtio-rng.c
@@
-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;