On 07/16/2017 10:04 AM, Emilio G. Cota wrote:
+#define PROF_ADD_MAX(to, from, field) \ + do { \ + typeof((from)->field) val__ = atomic_read(&((from)->field)); \ + if (val__ > (to)->field) { \ + (to)->field = val__; \ + } \ + } while (0)
PROF_MAX? There's no addition involved. Otherwise, Reviewed-by: Richard Henderson <r...@twiddle.net> r~