#ifndef _TIMEKEEPING_INTERNAL_H #define _TIMEKEEPING_INTERNAL_H /* * timekeeping debug functions */ #include <linux/clocksource.h> #include <linux/time.h> #ifdef CONFIG_DEBUG_FS extern void tk_debug_account_sleep_time(struct timespec64 *t); #else #define tk_debug_account_sleep_time(x) #endif #ifdef CONFIG_CLOCKSOURCE_VALIDATE_LAST_CYCLE
static inline cycle_t clocksource_delta(cycle_t now, cycle_t last, cycle_t mask) { cycle_t ret = (now - last) & mask; /* * Prevent time going backwards by checking the MSB of mask in * the result. If set, return 0. */ return ret & ~(mask >> 1) ? 0 : ret; }Contributors
| Person | Tokens | Prop | Commits | CommitProp | |
| thomas gleixner | thomas gleixner | 33 | 78.57% | 1 | 50.00% |
| yang yingliang | yang yingliang | 9 | 21.43% | 1 | 50.00% |
| Total | 42 | 100.00% | 2 | 100.00% |
| Person | Tokens | Prop | Commits | CommitProp | |
| thomas gleixner | thomas gleixner | 25 | 100.00% | 1 | 100.00% |
| Total | 25 | 100.00% | 1 | 100.00% |
| Person | Tokens | Prop | Commits | CommitProp | |
| thomas gleixner | thomas gleixner | 68 | 56.67% | 2 | 33.33% |
| colin cross | colin cross | 35 | 29.17% | 1 | 16.67% |
| yang yingliang | yang yingliang | 9 | 7.50% | 1 | 16.67% |
| dengchao | dengchao | 7 | 5.83% | 1 | 16.67% |
| john stultz | john stultz | 1 | 0.83% | 1 | 16.67% |
| Total | 120 | 100.00% | 6 | 100.00% |