Recompute latency counter cpu group to utilize all space in the perf counter...
/* PERFC_VALPERCNT max per-cpu values per counter
* PERFC_VALPERCPU max per-cpu values per cacheline
* PERFC_IVL_MAX max bounds in a distribution counter
- * PERFC_BKT_MAX max buckets in a distribution counter
- * PERFC_GRP_MAX max bucket groups distribution counter
+ * PERFC_GRP_MAX max cpu groups in a distribution counter
* PERFC_PCT_SCALE power-of-two scaling factor for pdi_pct
*/
-#define PERFC_VALPERCNT (64)
+#define PERFC_VALPERCNT (128)
#define PERFC_VALPERCPU ((SMP_CACHE_BYTES * 2) / sizeof(struct perfc_val))
#define PERFC_VAL_MAX (PERFC_VALPERCNT * PERFC_VALPERCPU)
-#define PERFC_IVL_MAX (PERFC_VALPERCNT / 2 - 1)
-#define PERFC_GRP_MAX (SMP_CACHE_BYTES / sizeof(struct perfc_bkt) * 2)
-#define PERFC_BKT_MAX (PERFC_GRP_MAX * (PERFC_IVL_MAX + 1))
+#define PERFC_IVL_MAX (32 - 1)
+#define PERFC_GRP_MAX \
+ ((PERFC_VALPERCNT * SMP_CACHE_BYTES * 2) / ((PERFC_IVL_MAX + 1) * sizeof(struct perfc_bkt)))
+
#define PERFC_PCT_SCALE (128)
struct perfc_ivl;
