Index: kernel/generic/include/proc/thread.h
===================================================================
--- kernel/generic/include/proc/thread.h	(revision df496c53916f2aa97e799467523c227b41d98c3b)
+++ kernel/generic/include/proc/thread.h	(revision cce6acfce7ba5aa42cbdb62bd49db143e53fdcf4)
@@ -146,4 +146,7 @@
 
 	uint64_t ticks;				/**< Ticks before preemption. */
+	
+	uint64_t cycles;			/**< Task accounting. */
+	uint64_t last_cycle;		/**< Last sampled cycle. */
 
 	int priority;				/**< Thread's priority. Implemented as index to CPU->rq */
@@ -190,4 +193,5 @@
 extern void thread_print_list(void);
 extern void thread_destroy(thread_t *t);
+extern void thread_update_accounting(void);
 extern bool thread_exists(thread_t *t);
 
