clear-pkgs-linux-iot-lts2018/1215-virtio-enable-polling-...

32 lines
993 B
Diff
Raw Permalink Normal View History

2020-10-28 12:31:19 +08:00
From 0000000000000000000000000000000000000000 Mon Sep 17 00:00:00 2001
From: Gao Junhao <junhao.gao@intel.com>
Date: Tue, 11 Jun 2019 12:33:04 +0000
Subject: [PATCH] virtio: enable polling mode for virtio-rnd
add polling mode for virtio-rnd
Tracked-On: projectacrn/acrn-hypervisor#3267
Signed-off-by: Gao Junhao <junhao.gao@intel.com>
Acked-by: Yu Wang <yu1.wang@intel.com>
---
drivers/char/hw_random/virtio-rng.c | 3 +++
1 file changed, 3 insertions(+)
diff --git a/drivers/char/hw_random/virtio-rng.c b/drivers/char/hw_random/virtio-rng.c
index 7abd604e938c..42ac15e3b8c2 100644
--- a/drivers/char/hw_random/virtio-rng.c
+++ b/drivers/char/hw_random/virtio-rng.c
@@ -216,6 +216,9 @@ static struct virtio_driver virtio_rng_driver = {
.driver.name = KBUILD_MODNAME,
.driver.owner = THIS_MODULE,
.id_table = id_table,
+#ifdef CONFIG_VIRTIO_PMD
+ .polling_mode = true,
+#endif
.probe = virtrng_probe,
.remove = virtrng_remove,
.scan = virtrng_scan,
--
https://clearlinux.org