mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-12 15:49:17 -04:00
soc: qcom: hab: avoid printk storm in the pipe read retry
The prink() could consume enough CPU when the retry eventually takes a lot of times before it could succeed. Change-Id: I4f49d0650ee3ae06700d2ce592acd0532bbf38cd Signed-off-by: Yong Ding <yongding@codeaurora.org>
This commit is contained in:
parent
bb168a0f46
commit
0f22667ec0
1 changed files with 2 additions and 2 deletions
|
|
@ -1,6 +1,6 @@
|
|||
// SPDX-License-Identifier: GPL-2.0-only
|
||||
/*
|
||||
* Copyright (c) 2016-2019, The Linux Foundation. All rights reserved.
|
||||
* Copyright (c) 2016-2021, The Linux Foundation. All rights reserved.
|
||||
*/
|
||||
#include "hab.h"
|
||||
#include "hab_pipe.h"
|
||||
|
|
@ -148,7 +148,7 @@ uint32_t hab_pipe_read(struct hab_pipe_endpoint *ep,
|
|||
retry:
|
||||
|
||||
if (unlikely(head->signature != 0xBEE1BEE1)) {
|
||||
pr_err("hab head corruption detected at %pK buf %pK %08X %08X %08X %08X rd %d wr %d index %X saved %X retry %d\n",
|
||||
pr_debug("hab head corruption detected at %pK buf %pK %08X %08X %08X %08X rd %d wr %d index %X saved %X retry %d\n",
|
||||
head, &sh_buf->data[0],
|
||||
head->id_type_size, head->session_id,
|
||||
head->signature, head->sequence,
|
||||
|
|
|
|||
Loading…
Reference in a new issue