Loading lmkd/lmkd.c +3 −5 Original line number Original line Diff line number Diff line Loading @@ -1969,12 +1969,10 @@ static void mainloop(void) { clock_gettime(CLOCK_MONOTONIC_COARSE, &curr_tm); clock_gettime(CLOCK_MONOTONIC_COARSE, &curr_tm); if (get_time_diff_ms(&last_report_tm, &curr_tm) >= PSI_POLL_PERIOD_MS) { if (get_time_diff_ms(&last_report_tm, &curr_tm) >= PSI_POLL_PERIOD_MS) { if (polling) { polling--; polling--; poll_handler->handler(poll_handler->data, 0); poll_handler->handler(poll_handler->data, 0); last_report_tm = curr_tm; last_report_tm = curr_tm; } } } } else { } else { /* Wait for events with no timeout */ /* Wait for events with no timeout */ nevents = epoll_wait(epollfd, events, maxevents, -1); nevents = epoll_wait(epollfd, events, maxevents, -1); Loading Loading
lmkd/lmkd.c +3 −5 Original line number Original line Diff line number Diff line Loading @@ -1969,12 +1969,10 @@ static void mainloop(void) { clock_gettime(CLOCK_MONOTONIC_COARSE, &curr_tm); clock_gettime(CLOCK_MONOTONIC_COARSE, &curr_tm); if (get_time_diff_ms(&last_report_tm, &curr_tm) >= PSI_POLL_PERIOD_MS) { if (get_time_diff_ms(&last_report_tm, &curr_tm) >= PSI_POLL_PERIOD_MS) { if (polling) { polling--; polling--; poll_handler->handler(poll_handler->data, 0); poll_handler->handler(poll_handler->data, 0); last_report_tm = curr_tm; last_report_tm = curr_tm; } } } } else { } else { /* Wait for events with no timeout */ /* Wait for events with no timeout */ nevents = epoll_wait(epollfd, events, maxevents, -1); nevents = epoll_wait(epollfd, events, maxevents, -1); Loading