Displaying 4 results from an estimated 4 matches for "vmi_get_real_cycl".
Did you mean:
vmi_get_real_cycles
2007 Apr 18
0
[RFC, PATCH 23/24] i386 Vmi timer patch
...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_accounted_system);
+}
+
+static unsign...
2007 Apr 18
0
[RFC, PATCH 23/24] i386 Vmi timer patch
...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_accounted_system);
+}
+
+static unsign...
2007 Apr 18
1
[RFC, PATCH 24/24] i386 Vmi no idle hz
...}
+
+/* Called from interrupt handlers when (local) HZ timer is disabled. */
+void vmi_account_time_restart_hz_timer(struct pt_regs *regs, int cpu)
+{
+ unsigned long long cur_real_cycles, cur_process_times_cycles;
+ /* Account the time during which the HZ timer was disabled. */
+ cur_real_cycles = vmi_get_real_cycles();
+ cur_process_times_cycles = vmi_get_available_cycles();
+ /* Update system wide (real) time state (xtime, jiffies). */
+ vmi_account_real_cycles(regs, cur_real_cycles);
+ /* Update per-cpu idle times. */
+ vmi_account_no_hz_idle_cycles(regs, cpu, cur_process_times_cycles);
+ /* Update...
2007 Apr 18
1
[RFC, PATCH 24/24] i386 Vmi no idle hz
...}
+
+/* Called from interrupt handlers when (local) HZ timer is disabled. */
+void vmi_account_time_restart_hz_timer(struct pt_regs *regs, int cpu)
+{
+ unsigned long long cur_real_cycles, cur_process_times_cycles;
+ /* Account the time during which the HZ timer was disabled. */
+ cur_real_cycles = vmi_get_real_cycles();
+ cur_process_times_cycles = vmi_get_available_cycles();
+ /* Update system wide (real) time state (xtime, jiffies). */
+ vmi_account_real_cycles(regs, cur_real_cycles);
+ /* Update per-cpu idle times. */
+ vmi_account_no_hz_idle_cycles(regs, cpu, cur_process_times_cycles);
+ /* Update...