aboutsummaryrefslogtreecommitdiffstats
path: root/arch/powerpc/kernel/time.c
diff options
context:
space:
mode:
Diffstat (limited to 'arch/powerpc/kernel/time.c')
-rw-r--r--arch/powerpc/kernel/time.c10
1 files changed, 5 insertions, 5 deletions
diff --git a/arch/powerpc/kernel/time.c b/arch/powerpc/kernel/time.c
index 49da7f06e643..39899d7ebda0 100644
--- a/arch/powerpc/kernel/time.c
+++ b/arch/powerpc/kernel/time.c
@@ -291,7 +291,7 @@ static inline u64 calculate_stolen_time(u64 stop_tb)
291 * Account time for a transition between system, hard irq 291 * Account time for a transition between system, hard irq
292 * or soft irq state. 292 * or soft irq state.
293 */ 293 */
294void account_system_vtime(struct task_struct *tsk) 294void vtime_account(struct task_struct *tsk)
295{ 295{
296 u64 now, nowscaled, delta, deltascaled; 296 u64 now, nowscaled, delta, deltascaled;
297 unsigned long flags; 297 unsigned long flags;
@@ -343,14 +343,14 @@ void account_system_vtime(struct task_struct *tsk)
343 } 343 }
344 local_irq_restore(flags); 344 local_irq_restore(flags);
345} 345}
346EXPORT_SYMBOL_GPL(account_system_vtime); 346EXPORT_SYMBOL_GPL(vtime_account);
347 347
348/* 348/*
349 * Transfer the user and system times accumulated in the paca 349 * Transfer the user and system times accumulated in the paca
350 * by the exception entry and exit code to the generic process 350 * by the exception entry and exit code to the generic process
351 * user and system time records. 351 * user and system time records.
352 * Must be called with interrupts disabled. 352 * Must be called with interrupts disabled.
353 * Assumes that account_system_vtime() has been called recently 353 * Assumes that vtime_account() has been called recently
354 * (i.e. since the last entry from usermode) so that 354 * (i.e. since the last entry from usermode) so that
355 * get_paca()->user_time_scaled is up to date. 355 * get_paca()->user_time_scaled is up to date.
356 */ 356 */
@@ -366,9 +366,9 @@ void account_process_tick(struct task_struct *tsk, int user_tick)
366 account_user_time(tsk, utime, utimescaled); 366 account_user_time(tsk, utime, utimescaled);
367} 367}
368 368
369void account_switch_vtime(struct task_struct *prev) 369void vtime_task_switch(struct task_struct *prev)
370{ 370{
371 account_system_vtime(prev); 371 vtime_account(prev);
372 account_process_tick(prev, 0); 372 account_process_tick(prev, 0);
373} 373}
374 374