coresight: use pr_err_ratelimited for coresight abort error

Switch to using pr_err_ratelimited so as to not flood the logs if
coresight_abort gets called repeatedly from panic while the
semaphore is acquired but not released.

Change-Id: Ife180795be0e605c587b117eb0441081b154da5e
Signed-off-by: Pratik Patel <pratikp@codeaurora.org>
This commit is contained in:
Pratik Patel 2014-09-17 13:42:55 -07:00
parent 78c36fa0ef
commit 9609f534ff
1 changed files with 4 additions and 2 deletions

View File

@ -1,4 +1,4 @@
/* Copyright (c) 2012-2013, The Linux Foundation. All rights reserved.
/* Copyright (c) 2012-2014, The Linux Foundation. All rights reserved.
*
* This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License version 2 and
@ -19,6 +19,8 @@
#include <linux/io.h>
#include <linux/err.h>
#include <linux/export.h>
#include <linux/printk.h>
#include <linux/ratelimit.h>
#include <linux/slab.h>
#include <linux/semaphore.h>
#include <linux/clk.h>
@ -398,7 +400,7 @@ void coresight_abort(void)
struct coresight_device *cd;
if (down_trylock(&coresight_mutex)) {
pr_err("coresight: abort could not be processed\n");
pr_err_ratelimited("coresight: abort could not be processed\n");
return;
}
if (curr_sink == NO_SINK)