diff options
Diffstat (limited to 'kernel/time/tick-broadcast.c')
-rw-r--r-- | kernel/time/tick-broadcast.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/kernel/time/tick-broadcast.c b/kernel/time/tick-broadcast.c index 3500caaa0bfd..0e374cd2e0ef 100644 --- a/kernel/time/tick-broadcast.c +++ b/kernel/time/tick-broadcast.c | |||
@@ -19,6 +19,7 @@ | |||
19 | #include <linux/profile.h> | 19 | #include <linux/profile.h> |
20 | #include <linux/sched.h> | 20 | #include <linux/sched.h> |
21 | #include <linux/smp.h> | 21 | #include <linux/smp.h> |
22 | #include <linux/module.h> | ||
22 | 23 | ||
23 | #include "tick-internal.h" | 24 | #include "tick-internal.h" |
24 | 25 | ||
@@ -73,6 +74,8 @@ void tick_install_broadcast_device(struct clock_event_device *dev) | |||
73 | tick_broadcast_device.evtdev->rating >= dev->rating) || | 74 | tick_broadcast_device.evtdev->rating >= dev->rating) || |
74 | (dev->features & CLOCK_EVT_FEAT_C3STOP)) | 75 | (dev->features & CLOCK_EVT_FEAT_C3STOP)) |
75 | return; | 76 | return; |
77 | if (!try_module_get(dev->owner)) | ||
78 | return; | ||
76 | 79 | ||
77 | clockevents_exchange_device(tick_broadcast_device.evtdev, dev); | 80 | clockevents_exchange_device(tick_broadcast_device.evtdev, dev); |
78 | if (cur) | 81 | if (cur) |