search for: cur_real_cycl

Displaying 14 results from an estimated 14 matches for "cur_real_cycl".

Did you mean: cur_real_cycles
2007 Apr 18
0
[PATCH 6/6] VMI timer patches
..._ALARM_IS_PERIODIC | VMI_CYCLES_AVAILABLE, + per_cpu(process_times_cycles_accounted_cpu, cpu) + cycles_per_alarm, + cycles_per_alarm); +} + +#endif + +/* Update system wide (real) time accounting (e.g. jiffies, xtime). */ +static inline void vmi_account_real_cycles(unsigned long long cur_real_cycles) +{ + long long cycles_not_accounted; + + write_seqlock(&xtime_lock); + + cycles_not_accounted = cur_real_cycles - real_cycles_accounted_system; + while (cycles_not_accounted >= cycles_per_jiffy) { + /* systems wide jiffies and wallclock. */ + do_timer(1); + + cycles_not_accounted -=...
2007 Apr 18
0
[PATCH 6/6] VMI timer patches
..._ALARM_IS_PERIODIC | VMI_CYCLES_AVAILABLE, + per_cpu(process_times_cycles_accounted_cpu, cpu) + cycles_per_alarm, + cycles_per_alarm); +} + +#endif + +/* Update system wide (real) time accounting (e.g. jiffies, xtime). */ +static inline void vmi_account_real_cycles(unsigned long long cur_real_cycles) +{ + long long cycles_not_accounted; + + write_seqlock(&xtime_lock); + + cycles_not_accounted = cur_real_cycles - real_cycles_accounted_system; + while (cycles_not_accounted >= cycles_per_jiffy) { + /* systems wide jiffies and wallclock. */ + do_timer(1); + + cycles_not_accounted -=...
2007 Apr 18
0
[PATCH 5/5] Vmi timer.patch
..._ALARM_IS_PERIODIC | VMI_CYCLES_AVAILABLE, + per_cpu(process_times_cycles_accounted_cpu, cpu) + cycles_per_alarm, + cycles_per_alarm); +} + +#endif + +/* Update system wide (real) time accounting (e.g. jiffies, xtime). */ +static inline void vmi_account_real_cycles(unsigned long long cur_real_cycles) +{ + long long cycles_not_accounted; + + write_seqlock(&xtime_lock); + + cycles_not_accounted = cur_real_cycles - real_cycles_accounted_system; + while (cycles_not_accounted >= cycles_per_jiffy) { + /* systems wide jiffies and wallclock. */ + do_timer(1); + + cycles_not_accounted -=...
2007 Apr 18
0
[PATCH 5/5] Vmi timer.patch
..._ALARM_IS_PERIODIC | VMI_CYCLES_AVAILABLE, + per_cpu(process_times_cycles_accounted_cpu, cpu) + cycles_per_alarm, + cycles_per_alarm); +} + +#endif + +/* Update system wide (real) time accounting (e.g. jiffies, xtime). */ +static inline void vmi_account_real_cycles(unsigned long long cur_real_cycles) +{ + long long cycles_not_accounted; + + write_seqlock(&xtime_lock); + + cycles_not_accounted = cur_real_cycles - real_cycles_accounted_system; + while (cycles_not_accounted >= cycles_per_jiffy) { + /* systems wide jiffies and wallclock. */ + do_timer(1); + + cycles_not_accounted -=...
2007 Apr 18
1
[PATCH 9/10] Vmi timer update.patch
...TT | VMI_ALARM_IS_PERIODIC | VMI_CYCLES_AVAILABLE, - per_cpu(process_times_cycles_accounted_cpu, cpu) + cycles_per_alarm, - cycles_per_alarm); -} - -#endif - -/* Update system wide (real) time accounting (e.g. jiffies, xtime). */ -static void vmi_account_real_cycles(unsigned long long cur_real_cycles) -{ - long long cycles_not_accounted; - - write_seqlock(&xtime_lock); - - cycles_not_accounted = cur_real_cycles - real_cycles_accounted_system; - while (cycles_not_accounted >= cycles_per_jiffy) { - /* systems wide jiffies. */ - do_timer(1); - - cycles_not_accounted -= cycles_per_jiffy...
2007 Apr 18
1
[PATCH 9/10] Vmi timer update.patch
...TT | VMI_ALARM_IS_PERIODIC | VMI_CYCLES_AVAILABLE, - per_cpu(process_times_cycles_accounted_cpu, cpu) + cycles_per_alarm, - cycles_per_alarm); -} - -#endif - -/* Update system wide (real) time accounting (e.g. jiffies, xtime). */ -static void vmi_account_real_cycles(unsigned long long cur_real_cycles) -{ - long long cycles_not_accounted; - - write_seqlock(&xtime_lock); - - cycles_not_accounted = cur_real_cycles - real_cycles_accounted_system; - while (cycles_not_accounted >= cycles_per_jiffy) { - /* systems wide jiffies. */ - do_timer(1); - - cycles_not_accounted -= cycles_per_jiffy...
2007 Apr 18
1
[RFC, PATCH 24/24] i386 Vmi no idle hz
...pu, cpu) += cycles_per_jiffy; + } + /* Account time to the idle process. Also checks for expired timers, etc. */ + update_idle_times(jiffies_to_cputime(no_idle_hz_jiffies)); +} + /* Update per-cpu stolen time. */ static inline void vmi_account_stolen_cycles(int cpu, unsigned long long cur_real_cycles, @@ -362,6 +399,87 @@ static void vmi_local_timer_interrupt(st vmi_account_stolen_cycles(cpu, cur_real_cycles, cur_process_times_cycles); } +#ifdef CONFIG_NO_IDLE_HZ + +/* Must be called only from idle loop, with interrupts disabled. */ +void vmi_stop_hz_timer(void) +{ + /* Note that cpu_set...
2007 Apr 18
1
[RFC, PATCH 24/24] i386 Vmi no idle hz
...pu, cpu) += cycles_per_jiffy; + } + /* Account time to the idle process. Also checks for expired timers, etc. */ + update_idle_times(jiffies_to_cputime(no_idle_hz_jiffies)); +} + /* Update per-cpu stolen time. */ static inline void vmi_account_stolen_cycles(int cpu, unsigned long long cur_real_cycles, @@ -362,6 +399,87 @@ static void vmi_local_timer_interrupt(st vmi_account_stolen_cycles(cpu, cur_real_cycles, cur_process_times_cycles); } +#ifdef CONFIG_NO_IDLE_HZ + +/* Must be called only from idle loop, with interrupts disabled. */ +void vmi_stop_hz_timer(void) +{ + /* Note that cpu_set...
2007 Apr 18
0
[RFC, PATCH 23/24] i386 Vmi timer patch
...CONFIG_X86_IO_APIC + if (vmi_timer_used()) + return 1; + else + return timer_irq_works(); +#else + return 1; +#endif +} + +#endif + +/* Update system wide (real) time accounting (e.g. jiffies, xtime). */ +static inline void vmi_account_real_cycles(struct pt_regs *regs, + unsigned long long cur_real_cycles) +{ + long long cycles_not_accounted; + + write_seqlock(&xtime_lock); + + cycles_not_accounted = cur_real_cycles - real_cycles_accounted_system; + while (cycles_not_accounted >= cycles_per_jiffy) { + /* systems wide jiffies and wallclock. */ + do_timer(regs); + + cycles_not_accounted...
2007 Apr 18
0
[RFC, PATCH 23/24] i386 Vmi timer patch
...CONFIG_X86_IO_APIC + if (vmi_timer_used()) + return 1; + else + return timer_irq_works(); +#else + return 1; +#endif +} + +#endif + +/* Update system wide (real) time accounting (e.g. jiffies, xtime). */ +static inline void vmi_account_real_cycles(struct pt_regs *regs, + unsigned long long cur_real_cycles) +{ + long long cycles_not_accounted; + + write_seqlock(&xtime_lock); + + cycles_not_accounted = cur_real_cycles - real_cycles_accounted_system; + while (cycles_not_accounted >= cycles_per_jiffy) { + /* systems wide jiffies and wallclock. */ + do_timer(regs); + + cycles_not_accounted...
2007 Apr 18
31
[PATCH 00/28] Updates for firstfloor paravirt-ops patches
Hi Andi, This is a set of updates for the firstfloor patch queue. Quick rundown: revert-mm-x86_64-mm-account-for-module-percpu-space-separately-from-kernel-percpu.patch separate-module-percpu-space.patch Update the module percpu accounting patch fix-ff-allow-percpu-variables-to-be-page-aligned.patch Make sure the percpu memory allocation is page-aligned
2007 Apr 18
31
[PATCH 00/28] Updates for firstfloor paravirt-ops patches
Hi Andi, This is a set of updates for the firstfloor patch queue. Quick rundown: revert-mm-x86_64-mm-account-for-module-percpu-space-separately-from-kernel-percpu.patch separate-module-percpu-space.patch Update the module percpu accounting patch fix-ff-allow-percpu-variables-to-be-page-aligned.patch Make sure the percpu memory allocation is page-aligned
2007 Apr 18
0
[PATCH 1/9] Vmi timer fixes round two.patch
...able_noidle = 1; return 0; } diff -r f62ebe3ba01c arch/i386/kernel/vmitime.c --- a/arch/i386/kernel/vmitime.c Tue Feb 27 14:01:28 2007 -0800 +++ b/arch/i386/kernel/vmitime.c Tue Feb 27 14:12:01 2007 -0800 @@ -276,15 +276,12 @@ static void vmi_account_real_cycles(unsi cycles_not_accounted = cur_real_cycles - real_cycles_accounted_system; while (cycles_not_accounted >= cycles_per_jiffy) { - /* systems wide jiffies and wallclock. */ + /* systems wide jiffies. */ do_timer(1); cycles_not_accounted -= cycles_per_jiffy; real_cycles_accounted_system += cycles_per_jiffy; } - - if (vmi_t...
2007 Apr 18
0
[PATCH 1/9] Vmi timer fixes round two.patch
...able_noidle = 1; return 0; } diff -r f62ebe3ba01c arch/i386/kernel/vmitime.c --- a/arch/i386/kernel/vmitime.c Tue Feb 27 14:01:28 2007 -0800 +++ b/arch/i386/kernel/vmitime.c Tue Feb 27 14:12:01 2007 -0800 @@ -276,15 +276,12 @@ static void vmi_account_real_cycles(unsi cycles_not_accounted = cur_real_cycles - real_cycles_accounted_system; while (cycles_not_accounted >= cycles_per_jiffy) { - /* systems wide jiffies and wallclock. */ + /* systems wide jiffies. */ do_timer(1); cycles_not_accounted -= cycles_per_jiffy; real_cycles_accounted_system += cycles_per_jiffy; } - - if (vmi_t...