return j;
}
+#if 0
/**
* round_jiffies_up - function to round jiffies up to a full second
* @j: the time in (absolute) jiffies that should be rounded
return round_jiffies_common(j, raw_smp_processor_id(), true);
}
EXPORT_SYMBOL_GPL(round_jiffies_up);
+#endif
#endif /* LINUX_VERSION_CODE < KERNEL_VERSION(2,6,28) */
struct module;
struct tracepoint;
+#if (LINUX_VERSION_CODE >= KERNEL_VERSION(2,6,28))
struct tracepoint {
const char *name; /* Tracepoint name */
int state; /* State. */
* align these on the structure size.
* Keep in sync with vmlinux.lds.h.
*/
+#endif
#ifndef DECLARE_TRACE
return -ENOSYS; \
}
+#if (LINUX_VERSION_CODE >= KERNEL_VERSION(2,6,28))
#define DEFINE_TRACE(name)
+#endif
#define EXPORT_TRACEPOINT_SYMBOL_GPL(name)
#define EXPORT_TRACEPOINT_SYMBOL(name)
+#if (LINUX_VERSION_CODE >= KERNEL_VERSION(2,6,28))
static inline void tracepoint_update_probe_range(struct tracepoint *begin,
struct tracepoint *end)
{ }
+#endif
#endif