]> git.karo-electronics.de Git - karo-tx-linux.git/blobdiff - include/trace/events/module.h
Merge remote-tracking branches 'regulator/topic/fixed', 'regulator/topic/id-const...
[karo-tx-linux.git] / include / trace / events / module.h
index ed0b2c599a64f7d701117bf54ba6a4dcd56edb31..7c5cbfe3fc49d6761bccc004c9475b16fc2a3dbe 100644 (file)
@@ -80,7 +80,7 @@ DECLARE_EVENT_CLASS(module_refcnt,
 
        TP_fast_assign(
                __entry->ip     = ip;
-               __entry->refcnt = __this_cpu_read(mod->refptr->incs) + __this_cpu_read(mod->refptr->decs);
+               __entry->refcnt = __this_cpu_read(mod->refptr->incs) - __this_cpu_read(mod->refptr->decs);
                __assign_str(name, mod->name);
        ),