diff options
author | Markus Mayer <mmayer@broadcom.com> | 2019-02-11 17:24:41 -0800 |
---|---|---|
committer | Florian Fainelli <f.fainelli@gmail.com> | 2019-05-20 09:32:35 -0700 |
commit | 7ccd2ffce0d4a180172c984ca7266d056d6d4b11 (patch) | |
tree | 23652049b5229b920dacb0105605c16ed919c307 /drivers | |
parent | a188339ca5a396acc588e5851ed7e19f66b0ebd9 (diff) | |
download | linux-7ccd2ffce0d4a180172c984ca7266d056d6d4b11.tar.gz linux-7ccd2ffce0d4a180172c984ca7266d056d6d4b11.tar.bz2 linux-7ccd2ffce0d4a180172c984ca7266d056d6d4b11.zip |
memory: brcmstb: dpfe: use msleep() over udelay()
To be more "scheduler friendly", we use msleep() rather than udelay()
while we wait for the DCPU to respond.
Signed-off-by: Markus Mayer <mmayer@broadcom.com>
Signed-off-by: Florian Fainelli <f.fainelli@gmail.com>
Diffstat (limited to 'drivers')
-rw-r--r-- | drivers/memory/brcmstb_dpfe.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/drivers/memory/brcmstb_dpfe.c b/drivers/memory/brcmstb_dpfe.c index 04599eccd604..8e1ccdb0e59d 100644 --- a/drivers/memory/brcmstb_dpfe.c +++ b/drivers/memory/brcmstb_dpfe.c @@ -111,7 +111,7 @@ #define DPFE_MSG_TYPE_COMMAND 1 #define DPFE_MSG_TYPE_RESPONSE 2 -#define DELAY_LOOP_MAX 200000 +#define DELAY_LOOP_MAX 1000 enum dpfe_msg_fields { MSG_HEADER, @@ -323,7 +323,7 @@ static int __send_command(struct private_data *priv, unsigned int cmd, resp = readl_relaxed(regs + REG_TO_HOST_MBOX); if (resp > 0) break; - udelay(5); + msleep(1); } if (i == DELAY_LOOP_MAX) { |