Since the rounded-up wakeup address is always higher than the head, the
limit cannot be less than the head caused by wakeup capping.
The described scenario is never valid caused by wakeup capping, remove
the comment to avoid confusion.
Signed-off-by: Leo Yan <leo.yan@arm.com>
---
drivers/hwtracing/coresight/coresight-trbe.c | 16 ++--------------
1 file changed, 2 insertions(+), 14 deletions(-)
diff --git a/drivers/hwtracing/coresight/coresight-trbe.c b/drivers/hwtracing/coresight/coresight-trbe.c
index 48bc03bd339908b5eac9466dc60325ff1b238976..206eaf103cd94f36220cb6bddd1a78012f5de35a 100644
--- a/drivers/hwtracing/coresight/coresight-trbe.c
+++ b/drivers/hwtracing/coresight/coresight-trbe.c
@@ -488,10 +488,10 @@ static unsigned long __trbe_normal_offset(struct perf_output_handle *handle)
limit = min(limit, round_up(wakeup, PAGE_SIZE));
/*
- * There are two situation when this can happen i.e limit is before
+ * There is a situation when this can happen i.e limit is before
* the head and hence TRBE cannot be configured.
*
- * 1) head < tail (aligned down with PAGE_SIZE) and also they are both
+ * head < tail (aligned down with PAGE_SIZE) and also they are both
* within the same PAGE size range.
*
* PAGE_SIZE
@@ -502,18 +502,6 @@ static unsigned long __trbe_normal_offset(struct perf_output_handle *handle)
* |$$$$$$$$$$$$$$$$$$$|========|$$$$$$$|
* +------------|------|--------|-------+
* trbe_base trbe_base + nr_pages
- *
- * 2) head < wakeup (aligned up with PAGE_SIZE) < tail and also both
- * head and wakeup are within same PAGE size range.
- *
- * PAGE_SIZE
- * |----------------------|
- *
- * limit head wakeup tail
- * +----|------|-------|--------|-------+
- * |$$$$$$$$$$$|=======|========|$$$$$$$|
- * +----|------|-------|--------|-------+
- * trbe_base trbe_base + nr_pages
*/
if (limit > head)
return limit;
--
2.34.1