|
@@ -871,6 +871,9 @@ void tick_broadcast_setup_oneshot(struct clock_event_device *bc)
|
|
{
|
|
{
|
|
int cpu = smp_processor_id();
|
|
int cpu = smp_processor_id();
|
|
|
|
|
|
|
|
+ if (!bc)
|
|
|
|
+ return;
|
|
|
|
+
|
|
/* Set it up only once ! */
|
|
/* Set it up only once ! */
|
|
if (bc->event_handler != tick_handle_oneshot_broadcast) {
|
|
if (bc->event_handler != tick_handle_oneshot_broadcast) {
|
|
int was_periodic = clockevent_state_periodic(bc);
|
|
int was_periodic = clockevent_state_periodic(bc);
|