Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 6af61566 authored by Avinash Philip's avatar Avinash Philip
Browse files

driver:soc:llcc_perfmon: Configure filter if events not configured



Don't allow configure filter using SYSFS if events configured already.

Change-Id: I1ffdc99e325b3428a5c402c8229e693d4a08d39b
Signed-off-by: default avatarAvinash Philip <avinashp@codeaurora.org>
parent 1f668377
Loading
Loading
Loading
Loading
+5 −0
Original line number Diff line number Diff line
@@ -398,6 +398,11 @@ static ssize_t perfmon_filter_config_store(struct device *dev,
	char *token, *delim = DELIM_CHAR;
	enum filter_type filter = UNKNOWN;

	if (llcc_priv->configured_counters) {
		pr_err("remove configured events and try\n");
		return count;
	}

	mutex_lock(&llcc_priv->mutex);

	token = strsep((char **)&buf, delim);