]> git.proxmox.com Git - mirror_ubuntu-bionic-kernel.git/blobdiff - include/linux/timecounter.h
net: stmmac: remove unused duplicate property snps,axi_all
[mirror_ubuntu-bionic-kernel.git] / include / linux / timecounter.h
index 4382035a75bbcdc65d8099a9b3d2d384e31815ff..2496ad4cfc99d14ca609bd1c9c123f9de6d3b2e0 100644 (file)
@@ -20,7 +20,7 @@
 #include <linux/types.h>
 
 /* simplify initialization of mask field */
-#define CYCLECOUNTER_MASK(bits) (cycle_t)((bits) < 64 ? ((1ULL<<(bits))-1) : -1)
+#define CYCLECOUNTER_MASK(bits) (u64)((bits) < 64 ? ((1ULL<<(bits))-1) : -1)
 
 /**
  * struct cyclecounter - hardware abstraction for a free running counter
@@ -37,8 +37,8 @@
  * @shift:             cycle to nanosecond divisor (power of two)
  */
 struct cyclecounter {
-       cycle_t (*read)(const struct cyclecounter *cc);
-       cycle_t mask;
+       u64 (*read)(const struct cyclecounter *cc);
+       u64 mask;
        u32 mult;
        u32 shift;
 };
@@ -63,7 +63,7 @@ struct cyclecounter {
  */
 struct timecounter {
        const struct cyclecounter *cc;
-       cycle_t cycle_last;
+       u64 cycle_last;
        u64 nsec;
        u64 mask;
        u64 frac;
@@ -77,7 +77,7 @@ struct timecounter {
  * @frac:      pointer to storage for the fractional nanoseconds.
  */
 static inline u64 cyclecounter_cyc2ns(const struct cyclecounter *cc,
-                                     cycle_t cycles, u64 mask, u64 *frac)
+                                     u64 cycles, u64 mask, u64 *frac)
 {
        u64 ns = (u64) cycles;
 
@@ -134,6 +134,6 @@ extern u64 timecounter_read(struct timecounter *tc);
  * in the past.
  */
 extern u64 timecounter_cyc2time(struct timecounter *tc,
-                               cycle_t cycle_tstamp);
+                               u64 cycle_tstamp);
 
 #endif