X-Git-Url: http://demsky.eecs.uci.edu/git/?a=blobdiff_plain;f=include%2Flinux%2Fclockchips.h;h=20a100fe2b4f3040554f3994706d8f7b238460af;hb=57599cc997b81a7c4f764693a7316886a72067fe;hp=3a1dbba4d3ae2da500e710387d130cd8ad5dd4c2;hpb=049da6393fb30b62e418beb59a74dfcad513fc6d;p=firefly-linux-kernel-4.4.55.git diff --git a/include/linux/clockchips.h b/include/linux/clockchips.h index 3a1dbba4d3ae..20a100fe2b4f 100644 --- a/include/linux/clockchips.h +++ b/include/linux/clockchips.h @@ -143,3 +143,12 @@ extern void clockevents_notify(unsigned long reason, void *arg); #endif #endif + +#ifdef CONFIG_GENERIC_CLOCKEVENTS +extern ktime_t clockevents_get_next_event(int cpu); +#else +static inline ktime_t clockevents_get_next_event(int cpu) +{ + return (ktime_t) { .tv64 = KTIME_MAX }; +} +#endif