diff options
Diffstat (limited to 'kernel/sched/cputime.c')
-rw-r--r-- | kernel/sched/cputime.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/kernel/sched/cputime.c b/kernel/sched/cputime.c index 372692bd537..53f5b12f282 100644 --- a/kernel/sched/cputime.c +++ b/kernel/sched/cputime.c | |||
@@ -10,11 +10,11 @@ | |||
10 | 10 | ||
11 | /* | 11 | /* |
12 | * There are no locks covering percpu hardirq/softirq time. | 12 | * There are no locks covering percpu hardirq/softirq time. |
13 | * They are only modified in account_system_vtime, on corresponding CPU | 13 | * They are only modified in vtime_account, on corresponding CPU |
14 | * with interrupts disabled. So, writes are safe. | 14 | * with interrupts disabled. So, writes are safe. |
15 | * They are read and saved off onto struct rq in update_rq_clock(). | 15 | * They are read and saved off onto struct rq in update_rq_clock(). |
16 | * This may result in other CPU reading this CPU's irq time and can | 16 | * This may result in other CPU reading this CPU's irq time and can |
17 | * race with irq/account_system_vtime on this CPU. We would either get old | 17 | * race with irq/vtime_account on this CPU. We would either get old |
18 | * or new value with a side effect of accounting a slice of irq time to wrong | 18 | * or new value with a side effect of accounting a slice of irq time to wrong |
19 | * task when irq is in progress while we read rq->clock. That is a worthy | 19 | * task when irq is in progress while we read rq->clock. That is a worthy |
20 | * compromise in place of having locks on each irq in account_system_time. | 20 | * compromise in place of having locks on each irq in account_system_time. |
@@ -43,7 +43,7 @@ DEFINE_PER_CPU(seqcount_t, irq_time_seq); | |||
43 | * Called before incrementing preempt_count on {soft,}irq_enter | 43 | * Called before incrementing preempt_count on {soft,}irq_enter |
44 | * and before decrementing preempt_count on {soft,}irq_exit. | 44 | * and before decrementing preempt_count on {soft,}irq_exit. |
45 | */ | 45 | */ |
46 | void account_system_vtime(struct task_struct *curr) | 46 | void vtime_account(struct task_struct *curr) |
47 | { | 47 | { |
48 | unsigned long flags; | 48 | unsigned long flags; |
49 | s64 delta; | 49 | s64 delta; |
@@ -73,7 +73,7 @@ void account_system_vtime(struct task_struct *curr) | |||
73 | irq_time_write_end(); | 73 | irq_time_write_end(); |
74 | local_irq_restore(flags); | 74 | local_irq_restore(flags); |
75 | } | 75 | } |
76 | EXPORT_SYMBOL_GPL(account_system_vtime); | 76 | EXPORT_SYMBOL_GPL(vtime_account); |
77 | 77 | ||
78 | static int irqtime_account_hi_update(void) | 78 | static int irqtime_account_hi_update(void) |
79 | { | 79 | { |