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

Commit b975685a authored by qctecmdr Service's avatar qctecmdr Service Committed by Gerrit - the friendly Code Review server
Browse files

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

parents f0ea07c4 6af61566
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);