Update some patch for uadk from mainline. To get more infomation, please visit the homepage: https://github.com/Linaro/uadk Signed-off-by: Yang Shen <shenyang39@huawei.com>
32 lines
817 B
Diff
32 lines
817 B
Diff
From 4478ede7a98cc9f84b30bb5766007b2acbec1a2f Mon Sep 17 00:00:00 2001
|
|
From: Wenkai Lin <linwenkai6@hisilicon.com>
|
|
Date: Tue, 4 Jan 2022 12:20:32 +0800
|
|
Subject: [PATCH 30/53] wd: fix wd_parse_async_poll_num
|
|
|
|
skip parse poll number if inner poll is not enabled.
|
|
|
|
Signed-off-by: Wenkai Lin <linwenkai6@hisilicon.com>
|
|
---
|
|
wd_util.c | 5 +++++
|
|
1 file changed, 5 insertions(+)
|
|
|
|
diff --git a/wd_util.c b/wd_util.c
|
|
index e04747b..58463e9 100644
|
|
--- a/wd_util.c
|
|
+++ b/wd_util.c
|
|
@@ -759,6 +759,11 @@ int wd_parse_async_poll_num(struct wd_env_config *config, const char *s)
|
|
char *left, *section, *start;
|
|
int node, poll_num, ret;
|
|
|
|
+ if (!config->enable_internal_poll) {
|
|
+ WD_ERR("internal poll not enabled, skip parse poll number!\n");
|
|
+ return 0;
|
|
+ }
|
|
+
|
|
start = strdup(s);
|
|
if (!start)
|
|
return -ENOMEM;
|
|
--
|
|
2.25.1
|
|
|