Commit e9c6b4d7 authored by Andrzej Puzdrowski's avatar Andrzej Puzdrowski
Browse files

zephyr/main: always call sys_clock_disable()

Build-time conditional call is not needed anymore since the empty
sys_clock_disable() callback is provided if the platform
doesn't support system clock disable capability.

Reference:
https://github.com/zephyrproject-rtos/zephyr/commit/78dc8ce33828b1d995d520751fe761ade6103155



Signed-off-by: default avatarAndrzej Puzdrowski <andrzej.puzdrowski@nordicsemi.no>
parent 03ed502a
Loading
Loading
Loading
Loading
+1 −4
Original line number Diff line number Diff line
@@ -159,8 +159,6 @@ struct arm_vector_table {
    uint32_t reset;
};

extern void sys_clock_disable(void);

static void do_boot(struct boot_rsp *rsp)
{
    struct arm_vector_table *vt;
@@ -179,9 +177,8 @@ static void do_boot(struct boot_rsp *rsp)
                                     rsp->br_image_off +
                                     rsp->br_hdr->ih_hdr_size);

#ifdef CONFIG_SYS_CLOCK_EXISTS
    sys_clock_disable();
#endif

#ifdef CONFIG_USB_DEVICE_STACK
    /* Disable the USB to prevent it from firing interrupts */
    usb_disable();