jiffies.c (f95a985781e9e986992351c971af7f7e46e06ed5) | jiffies.c (d6ad418763888f617ac5b4849823e4cd670df1dd) |
---|---|
1/*********************************************************************** 2* linux/kernel/time/jiffies.c 3* 4* This file contains the jiffies based clocksource. 5* 6* Copyright (C) 2004, 2005 IBM, John Stultz (johnstul@us.ibm.com) 7* 8* This program is free software; you can redistribute it and/or modify --- 53 unchanged lines hidden (view full) --- 62 .name = "jiffies", 63 .rating = 1, /* lowest valid rating*/ 64 .read = jiffies_read, 65 .mask = 0xffffffff, /*32bits*/ 66 .mult = NSEC_PER_JIFFY << JIFFIES_SHIFT, /* details above */ 67 .shift = JIFFIES_SHIFT, 68}; 69 | 1/*********************************************************************** 2* linux/kernel/time/jiffies.c 3* 4* This file contains the jiffies based clocksource. 5* 6* Copyright (C) 2004, 2005 IBM, John Stultz (johnstul@us.ibm.com) 7* 8* This program is free software; you can redistribute it and/or modify --- 53 unchanged lines hidden (view full) --- 62 .name = "jiffies", 63 .rating = 1, /* lowest valid rating*/ 64 .read = jiffies_read, 65 .mask = 0xffffffff, /*32bits*/ 66 .mult = NSEC_PER_JIFFY << JIFFIES_SHIFT, /* details above */ 67 .shift = JIFFIES_SHIFT, 68}; 69 |
70__cacheline_aligned_in_smp DEFINE_SEQLOCK(jiffies_lock); 71 |
|
70#if (BITS_PER_LONG < 64) 71u64 get_jiffies_64(void) 72{ 73 unsigned long seq; 74 u64 ret; 75 76 do { | 72#if (BITS_PER_LONG < 64) 73u64 get_jiffies_64(void) 74{ 75 unsigned long seq; 76 u64 ret; 77 78 do { |
77 seq = read_seqbegin(&xtime_lock); | 79 seq = read_seqbegin(&jiffies_lock); |
78 ret = jiffies_64; | 80 ret = jiffies_64; |
79 } while (read_seqretry(&xtime_lock, seq)); | 81 } while (read_seqretry(&jiffies_lock, seq)); |
80 return ret; 81} 82EXPORT_SYMBOL(get_jiffies_64); 83#endif 84 85EXPORT_SYMBOL(jiffies); 86 87static int __init init_jiffies_clocksource(void) --- 40 unchanged lines hidden --- | 82 return ret; 83} 84EXPORT_SYMBOL(get_jiffies_64); 85#endif 86 87EXPORT_SYMBOL(jiffies); 88 89static int __init init_jiffies_clocksource(void) --- 40 unchanged lines hidden --- |