sw_end represents the last software master, sw_start is index of the first master, so the number of software masters should be sw_end - sw_start + 1.
This patchset simply modified the similar issue in two modules. Changes since V1: * Split the only one patch of V1 into two separated patches according to Alex's comments Chunyan Zhang (2): stm: the number of masters should be (sw_end - sw_start + 1) intel_th: the number of masters should be (sw_end - sw_start + 1) drivers/hwtracing/intel_th/sth.c | 2 +- drivers/hwtracing/stm/core.c | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) -- 1.9.1 -- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majord...@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/