In rtv-davinci.c there is this piece of code:

static inline void davinci_rtcif_wait(struct davinci_rtc *davinci_rtc)
{
    while (davinci_rtcif_read(davinci_rtc, DAVINCI_PRTCIF_CTLR) &
               DAVINCI_PRTCIF_CTLR_BUSY)
                cpu_relax();
}


If there is any problem with the hardware configuration so that the rtc is not receiving clocking, this wait loop will completely hang the kernel.

Is it normal in the kernel to have wait loops with no exits?

I would have expected some type of countdown loop with an unconditional exit.

Hank




_______________________________________________
Davinci-linux-open-source mailing list
Davinci-linux-open-source@linux.davincidsp.com
http://linux.davincidsp.com/mailman/listinfo/davinci-linux-open-source

Reply via email to