Displaying 2 results from an estimated 2 matches for "cur_cycles".
2007 Apr 18
0
[RFC, PATCH 23/24] i386 Vmi timer patch
...times(), per cpu. */
+static DEFINE_PER_CPU(unsigned long long, process_times_cycles_accounted_cpu);
+
+/* The number of stolen cycles accounted, per cpu. */
+static DEFINE_PER_CPU(unsigned long long, stolen_cycles_accounted_cpu);
+
+static unsigned long get_offset_vmi(void)
+{
+ unsigned long long cur_cycles;
+
+ cur_cycles = vmi_get_real_cycles();
+
+ /* real_cycles_accounted_system is safe to read because this
+ * routine is always called with at least the xtime_lock read lock. */
+ if (cur_cycles < real_cycles_accounted_system) {
+ return 0;
+ }
+ return cycles_2_us(cur_cycles - real_cycles_ac...
2007 Apr 18
0
[RFC, PATCH 23/24] i386 Vmi timer patch
...times(), per cpu. */
+static DEFINE_PER_CPU(unsigned long long, process_times_cycles_accounted_cpu);
+
+/* The number of stolen cycles accounted, per cpu. */
+static DEFINE_PER_CPU(unsigned long long, stolen_cycles_accounted_cpu);
+
+static unsigned long get_offset_vmi(void)
+{
+ unsigned long long cur_cycles;
+
+ cur_cycles = vmi_get_real_cycles();
+
+ /* real_cycles_accounted_system is safe to read because this
+ * routine is always called with at least the xtime_lock read lock. */
+ if (cur_cycles < real_cycles_accounted_system) {
+ return 0;
+ }
+ return cycles_2_us(cur_cycles - real_cycles_ac...