commit | abe372f0be19e8f73c6def060b6a32ba81c1a6e2 | [log] [tgz] |
---|---|---|
author | xf.li <xf.li@mobiletek.cn> | Tue May 13 02:44:32 2025 -0700 |
committer | xf.li@mobiletek.cn <xf.li@mobiletek.cn> | Tue May 13 11:45:36 2025 +0000 |
tree | 01f3738ba4f19e1e8e0979f72ef0caed41ab2585 | |
parent | 866dac3729d4b65f8a3bc6ceb3f096a458be4048 [diff] |
[Bugfix][bug-view-1152] Fix the problem of high CPU load on nv instruction Only Configure:No Affected branch:master/intest Affected module:nv Is it affected on: only ZXIC Self-test: Yes Doc Update:No Change-Id: I4a463a6e46655497b43b0089ed3710a142d2b2ca
diff --git a/ap/app/zte_comm/nvserver/nvserver.c b/ap/app/zte_comm/nvserver/nvserver.c index fe5ba99..4e240f8 100755 --- a/ap/app/zte_comm/nvserver/nvserver.c +++ b/ap/app/zte_comm/nvserver/nvserver.c
@@ -146,9 +146,14 @@ } analyMsg(&rcvBuf, &sndBuf); - +msgsnd_retry: if(-1 == msgsnd(msgId, &sndBuf, sizeof(T_NV_MSG_RESULT) - sizeof(long), 0)) { + if (errno == EINTR) + { + printf("nvserver error: msgsnd fail, errno = EINTR!\n"); + goto msgsnd_retry; + } printf("nvserver error: nvserver msgsnd fail, errno = %d!\n", errno); continue; }
diff --git a/ap/lib/libnvram/libnvram.a b/ap/lib/libnvram/libnvram.a index 8bcec8c..f8ee1f2 100755 --- a/ap/lib/libnvram/libnvram.a +++ b/ap/lib/libnvram/libnvram.a Binary files differ
diff --git a/ap/lib/libnvram/libnvram.so b/ap/lib/libnvram/libnvram.so index 199b514..9818c67 100755 --- a/ap/lib/libnvram/libnvram.so +++ b/ap/lib/libnvram/libnvram.so Binary files differ
diff --git a/ap/lib/libnvram/libnvram_sc.a b/ap/lib/libnvram/libnvram_sc.a index 4a75c3d..88d24d8 100755 --- a/ap/lib/libnvram/libnvram_sc.a +++ b/ap/lib/libnvram/libnvram_sc.a Binary files differ
diff --git a/ap/lib/libnvram/libnvram_sc.so b/ap/lib/libnvram/libnvram_sc.so index 817cf4c..c4c2700 100755 --- a/ap/lib/libnvram/libnvram_sc.so +++ b/ap/lib/libnvram/libnvram_sc.so Binary files differ