|
@@ -154,6 +154,7 @@ extern u64 timecounter_cyc2time(struct timecounter *tc,
|
|
* @max_idle_ns: max idle time permitted by the clocksource (nsecs)
|
|
* @max_idle_ns: max idle time permitted by the clocksource (nsecs)
|
|
* @flags: flags describing special properties
|
|
* @flags: flags describing special properties
|
|
* @vread: vsyscall based read
|
|
* @vread: vsyscall based read
|
|
|
|
+ * @suspend: suspend function for the clocksource, if necessary
|
|
* @resume: resume function for the clocksource, if necessary
|
|
* @resume: resume function for the clocksource, if necessary
|
|
*/
|
|
*/
|
|
struct clocksource {
|
|
struct clocksource {
|
|
@@ -172,6 +173,7 @@ struct clocksource {
|
|
u64 max_idle_ns;
|
|
u64 max_idle_ns;
|
|
unsigned long flags;
|
|
unsigned long flags;
|
|
cycle_t (*vread)(void);
|
|
cycle_t (*vread)(void);
|
|
|
|
+ void (*suspend)(struct clocksource *cs);
|
|
void (*resume)(struct clocksource *cs);
|
|
void (*resume)(struct clocksource *cs);
|
|
#ifdef CONFIG_IA64
|
|
#ifdef CONFIG_IA64
|
|
void *fsys_mmio; /* used by fsyscall asm code */
|
|
void *fsys_mmio; /* used by fsyscall asm code */
|
|
@@ -277,6 +279,7 @@ extern void clocksource_unregister(struct clocksource*);
|
|
extern void clocksource_touch_watchdog(void);
|
|
extern void clocksource_touch_watchdog(void);
|
|
extern struct clocksource* clocksource_get_next(void);
|
|
extern struct clocksource* clocksource_get_next(void);
|
|
extern void clocksource_change_rating(struct clocksource *cs, int rating);
|
|
extern void clocksource_change_rating(struct clocksource *cs, int rating);
|
|
|
|
+extern void clocksource_suspend(void);
|
|
extern void clocksource_resume(void);
|
|
extern void clocksource_resume(void);
|
|
extern struct clocksource * __init __weak clocksource_default_clock(void);
|
|
extern struct clocksource * __init __weak clocksource_default_clock(void);
|
|
extern void clocksource_mark_unstable(struct clocksource *cs);
|
|
extern void clocksource_mark_unstable(struct clocksource *cs);
|