“3bb48060d12876fa851c2624653010ad91ce1148”上不存在“test/sun/util/git@gitcode.net:openanolis/dragonwell8_jdk.git”
提交 eccab2fe 编写于 作者: P Prashant Malani 提交者: Zheng Zengkai

platform/x86: intel_scu_ipc: Fix busy loop expiry time

stable inclusion
from stable-5.10.75
commit fdaff7f9e806fe241de0c4613ab6615000db23e9
bugzilla: 182987 https://gitee.com/openeuler/kernel/issues/I4I3MP

Reference: https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git/commit/?id=fdaff7f9e806fe241de0c4613ab6615000db23e9

--------------------------------

commit 41512e4d upstream.

The macro IPC_TIMEOUT is already in jiffies (it is also used like that
elsewhere in the file when calling wait_for_completion_timeout()). Don’t
convert it using helper functions for the purposes of calculating the
busy loop expiry time.

Fixes: e7b7ab38 (“platform/x86: intel_scu_ipc: Sleeping is fine when polling”)
Signed-off-by: NPrashant Malani <pmalani@chromium.org>
Cc: Benson Leung <bleung@chromium.org>
Reviewed-by: NMika Westerberg <mika.westerberg@linux.intel.com>
Link: https://lore.kernel.org/r/20210928101932.2543937-2-pmalani@chromium.orgSigned-off-by: NHans de Goede <hdegoede@redhat.com>
Signed-off-by: NGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Signed-off-by: NChen Jun <chenjun102@huawei.com>
Acked-by: NWeilong Chen <chenweilong@huawei.com>
Signed-off-by: NChen Jun <chenjun102@huawei.com>
Signed-off-by: NZheng Zengkai <zhengzengkai@huawei.com>
上级 396ddfbb
...@@ -232,7 +232,7 @@ static inline u32 ipc_data_readl(struct intel_scu_ipc_dev *scu, u32 offset) ...@@ -232,7 +232,7 @@ static inline u32 ipc_data_readl(struct intel_scu_ipc_dev *scu, u32 offset)
/* Wait till scu status is busy */ /* Wait till scu status is busy */
static inline int busy_loop(struct intel_scu_ipc_dev *scu) static inline int busy_loop(struct intel_scu_ipc_dev *scu)
{ {
unsigned long end = jiffies + msecs_to_jiffies(IPC_TIMEOUT); unsigned long end = jiffies + IPC_TIMEOUT;
do { do {
u32 status; u32 status;
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册