]> git.baikalelectronics.ru Git - kernel.git/commit
platform/x86: intel_scu_ipc: Fix busy loop expiry time
authorPrashant Malani <pmalani@chromium.org>
Tue, 28 Sep 2021 10:19:30 +0000 (03:19 -0700)
committerHans de Goede <hdegoede@redhat.com>
Mon, 11 Oct 2021 13:32:22 +0000 (15:32 +0200)
commit7a72c4e46d050da2cad8da8fa8d2ffc8baf1b2f4
tree4a541046b3e7af0508b80cda5112e0126190f9df
parent9fdae3d8c9d529e00fd5dba0cbb1c51a7db78429
platform/x86: intel_scu_ipc: Fix busy loop expiry time

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: dc2d343b83cf (“platform/x86: intel_scu_ipc: Sleeping is fine when polling”)
Signed-off-by: Prashant Malani <pmalani@chromium.org>
Cc: Benson Leung <bleung@chromium.org>
Reviewed-by: Mika Westerberg <mika.westerberg@linux.intel.com>
Link: https://lore.kernel.org/r/20210928101932.2543937-2-pmalani@chromium.org
Signed-off-by: Hans de Goede <hdegoede@redhat.com>
drivers/platform/x86/intel_scu_ipc.c