diff options
Diffstat (limited to 'include/linux/module.h')
-rw-r--r-- | include/linux/module.h | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/include/linux/module.h b/include/linux/module.h index 5e869ffd34aa..393ec39b580a 100644 --- a/include/linux/module.h +++ b/include/linux/module.h | |||
@@ -460,8 +460,7 @@ static inline void __module_get(struct module *module) | |||
460 | if (module) { | 460 | if (module) { |
461 | preempt_disable(); | 461 | preempt_disable(); |
462 | __this_cpu_inc(module->refptr->count); | 462 | __this_cpu_inc(module->refptr->count); |
463 | trace_module_get(module, _THIS_IP_, | 463 | trace_module_get(module, _THIS_IP_); |
464 | __this_cpu_read(module->refptr->count)); | ||
465 | preempt_enable(); | 464 | preempt_enable(); |
466 | } | 465 | } |
467 | } | 466 | } |
@@ -475,8 +474,7 @@ static inline int try_module_get(struct module *module) | |||
475 | 474 | ||
476 | if (likely(module_is_live(module))) { | 475 | if (likely(module_is_live(module))) { |
477 | __this_cpu_inc(module->refptr->count); | 476 | __this_cpu_inc(module->refptr->count); |
478 | trace_module_get(module, _THIS_IP_, | 477 | trace_module_get(module, _THIS_IP_); |
479 | __this_cpu_read(module->refptr->count)); | ||
480 | } | 478 | } |
481 | else | 479 | else |
482 | ret = 0; | 480 | ret = 0; |