diff options
Diffstat (limited to 'kernel')
-rw-r--r-- | kernel/sched.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/kernel/sched.c b/kernel/sched.c index 6590a828138f..b8c9fe676221 100644 --- a/kernel/sched.c +++ b/kernel/sched.c | |||
@@ -889,7 +889,7 @@ unsigned long long notrace cpu_clock(int cpu) | |||
889 | unsigned long long prev_cpu_time, time, delta_time; | 889 | unsigned long long prev_cpu_time, time, delta_time; |
890 | unsigned long flags; | 890 | unsigned long flags; |
891 | 891 | ||
892 | raw_local_irq_save(flags); | 892 | local_irq_save(flags); |
893 | prev_cpu_time = per_cpu(prev_cpu_time, cpu); | 893 | prev_cpu_time = per_cpu(prev_cpu_time, cpu); |
894 | time = __cpu_clock(cpu) + per_cpu(time_offset, cpu); | 894 | time = __cpu_clock(cpu) + per_cpu(time_offset, cpu); |
895 | delta_time = time-prev_cpu_time; | 895 | delta_time = time-prev_cpu_time; |
@@ -898,7 +898,7 @@ unsigned long long notrace cpu_clock(int cpu) | |||
898 | time = __sync_cpu_clock(time, cpu); | 898 | time = __sync_cpu_clock(time, cpu); |
899 | per_cpu(prev_cpu_time, cpu) = time; | 899 | per_cpu(prev_cpu_time, cpu) = time; |
900 | } | 900 | } |
901 | raw_local_irq_restore(flags); | 901 | local_irq_restore(flags); |
902 | 902 | ||
903 | return time; | 903 | return time; |
904 | } | 904 | } |