module: Replace module_ref with atomic_t refcnt
authorMasami Hiramatsu <masami.hiramatsu.pt@hitachi.com>
Sun, 9 Nov 2014 22:59:29 +0000 (09:29 +1030)
committerRusty Russell <rusty@rustcorp.com.au>
Tue, 11 Nov 2014 06:37:46 +0000 (17:07 +1030)
commit2f35c41f58a978dfa44ffa102249d556caa99eeb
tree871fdf31787639112af15e3532bb6617660f2e47
parent0286b5ea125e58b4797747f688949c05394412e8
module: Replace module_ref with atomic_t refcnt

Replace module_ref per-cpu complex reference counter with
an atomic_t simple refcnt. This is for code simplification.

Signed-off-by: Masami Hiramatsu <masami.hiramatsu.pt@hitachi.com>
Signed-off-by: Rusty Russell <rusty@rustcorp.com.au>
include/linux/module.h
include/trace/events/module.h
kernel/module.c