]> git.kernelconcepts.de Git - karo-tx-linux.git/blobdiff - kernel/posix-cpu-timers.c
serial: pxa: fine-tune clk useage
[karo-tx-linux.git] / kernel / posix-cpu-timers.c
index d73840271dcee993936b48cc9e7f7d5f66a5c546..a278cad1d5d6225a52e6bf00b2fd90f98bbe916e 100644 (file)
@@ -9,6 +9,7 @@
 #include <asm/uaccess.h>
 #include <linux/kernel_stat.h>
 #include <trace/events/timer.h>
+#include <linux/random.h>
 
 /*
  * Called after updating RLIMIT_CPU to run cpu timer and update
@@ -470,6 +471,8 @@ static void cleanup_timers(struct list_head *head,
  */
 void posix_cpu_timers_exit(struct task_struct *tsk)
 {
+       add_device_randomness((const void*) &tsk->se.sum_exec_runtime,
+                                               sizeof(unsigned long long));
        cleanup_timers(tsk->cpu_timers,
                       tsk->utime, tsk->stime, tsk->se.sum_exec_runtime);