Searched refs:cd (Results 1 – 3 of 3) sorted by relevance
/kernel/time/ |
D | posix-clock.c | 199 static int get_clock_desc(const clockid_t id, struct posix_clock_desc *cd) in get_clock_desc() argument 210 cd->fp = fp; in get_clock_desc() 211 cd->clk = get_posix_clock(fp); in get_clock_desc() 213 err = cd->clk ? 0 : -ENODEV; in get_clock_desc() 220 static void put_clock_desc(struct posix_clock_desc *cd) in put_clock_desc() argument 222 put_posix_clock(cd->clk); in put_clock_desc() 223 fput(cd->fp); in put_clock_desc() 228 struct posix_clock_desc cd; in pc_clock_adjtime() local 231 err = get_clock_desc(id, &cd); in pc_clock_adjtime() 235 if ((cd.fp->f_mode & FMODE_WRITE) == 0) { in pc_clock_adjtime() [all …]
|
D | sched_clock.c | 62 static struct clock_data cd ____cacheline_aligned = { 75 *seq = raw_read_seqcount_latch(&cd.seq); in sched_clock_read_begin() 76 return cd.read_data + (*seq & 1); in sched_clock_read_begin() 81 return read_seqcount_latch_retry(&cd.seq, seq); in sched_clock_read_retry() 114 cd.read_data[1] = *rd; in update_clock_read_data() 117 raw_write_seqcount_latch(&cd.seq); in update_clock_read_data() 120 cd.read_data[0] = *rd; in update_clock_read_data() 123 raw_write_seqcount_latch(&cd.seq); in update_clock_read_data() 135 rd = cd.read_data[0]; in update_sched_clock() 137 cyc = cd.actual_read_sched_clock(); in update_sched_clock() [all …]
|
D | timeconst.bc | 76 cd=gcd(hz,1000) 77 print "#define HZ_TO_MSEC_NUM\t\t", 1000/cd, "\n" 78 print "#define HZ_TO_MSEC_DEN\t\t", hz/cd, "\n" 79 print "#define MSEC_TO_HZ_NUM\t\t", hz/cd, "\n" 80 print "#define MSEC_TO_HZ_DEN\t\t", 1000/cd, "\n" 98 cd=gcd(hz,1000000) 99 print "#define HZ_TO_USEC_NUM\t\t", 1000000/cd, "\n" 100 print "#define HZ_TO_USEC_DEN\t\t", hz/cd, "\n" 101 print "#define USEC_TO_HZ_NUM\t\t", hz/cd, "\n" 102 print "#define USEC_TO_HZ_DEN\t\t", 1000000/cd, "\n" [all …]
|