|
@@ -21,6 +21,7 @@
|
|
/* clocksource cycle base type */
|
|
/* clocksource cycle base type */
|
|
typedef u64 cycle_t;
|
|
typedef u64 cycle_t;
|
|
struct clocksource;
|
|
struct clocksource;
|
|
|
|
+struct module;
|
|
|
|
|
|
#ifdef CONFIG_ARCH_CLOCKSOURCE_DATA
|
|
#ifdef CONFIG_ARCH_CLOCKSOURCE_DATA
|
|
#include <asm/clocksource.h>
|
|
#include <asm/clocksource.h>
|
|
@@ -162,6 +163,7 @@ extern u64 timecounter_cyc2time(struct timecounter *tc,
|
|
* @suspend: suspend function for the clocksource, if necessary
|
|
* @suspend: suspend function for the clocksource, if necessary
|
|
* @resume: resume function for the clocksource, if necessary
|
|
* @resume: resume function for the clocksource, if necessary
|
|
* @cycle_last: most recent cycle counter value seen by ::read()
|
|
* @cycle_last: most recent cycle counter value seen by ::read()
|
|
|
|
+ * @owner: module reference, must be set by clocksource in modules
|
|
*/
|
|
*/
|
|
struct clocksource {
|
|
struct clocksource {
|
|
/*
|
|
/*
|
|
@@ -195,6 +197,7 @@ struct clocksource {
|
|
cycle_t cs_last;
|
|
cycle_t cs_last;
|
|
cycle_t wd_last;
|
|
cycle_t wd_last;
|
|
#endif
|
|
#endif
|
|
|
|
+ struct module *owner;
|
|
} ____cacheline_aligned;
|
|
} ____cacheline_aligned;
|
|
|
|
|
|
/*
|
|
/*
|