aboutsummaryrefslogtreecommitdiff
path: root/sys/sys/proc.h
diff options
context:
space:
mode:
authorDavide Italiano <davide@FreeBSD.org>2013-02-28 10:46:54 +0000
committerDavide Italiano <davide@FreeBSD.org>2013-02-28 10:46:54 +0000
commitacccf7d8b4896ba5a0f622d846bed66125f5c40a (patch)
tree33c7f3089361e0ab5379fdc8445540c6eeb03ed0 /sys/sys/proc.h
parent0f4fc79e2fcc50b027e0fe63887f860cb913a670 (diff)
downloadsrc-acccf7d8b4896ba5a0f622d846bed66125f5c40a.tar.gz
src-acccf7d8b4896ba5a0f622d846bed66125f5c40a.zip
MFcalloutng:
When CPU becomes idle, cpu_idleclock() calculates time to the next timer event in order to reprogram hw timer. Return that time in sbintime_t to the caller and pass it to acpi_cpu_idle(), where it can be used as one more factor (quite precise) to extimate furter sleep time and choose optimal sleep state. This is a preparatory change for further callout improvements will be committed in the next days. The commmit is not targeted for MFC.
Notes
Notes: svn path=/head/; revision=247454
Diffstat (limited to 'sys/sys/proc.h')
-rw-r--r--sys/sys/proc.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/sys/sys/proc.h b/sys/sys/proc.h
index ade28642cf0f..46f5820e745b 100644
--- a/sys/sys/proc.h
+++ b/sys/sys/proc.h
@@ -908,7 +908,7 @@ void tidhash_add(struct thread *);
void tidhash_remove(struct thread *);
void cpu_idle(int);
int cpu_idle_wakeup(int);
-extern void (*cpu_idle_hook)(void); /* Hook to machdep CPU idler. */
+extern void (*cpu_idle_hook)(sbintime_t); /* Hook to machdep CPU idler. */
void cpu_switch(struct thread *, struct thread *, struct mtx *);
void cpu_throw(struct thread *, struct thread *) __dead2;
void unsleep(struct thread *);