Skip to content
  • Frederic Weisbecker's avatar
    sched/cputime: Clean up the old vtime gen irqtime accounting completely · 0cfdf9a1
    Frederic Weisbecker authored
    
    
    Vtime generic irqtime accounting has been removed but there are a few
    remnants to clean up:
    
    * The vtime_accounting_cpu_enabled() check in irq entry was only used
      by CONFIG_VIRT_CPU_ACCOUNTING_GEN. We can safely remove it.
    
    * Without the vtime_accounting_cpu_enabled(), we no longer need to
      have a vtime_common_account_irq_enter() indirect function.
    
    * Move vtime_account_irq_enter() implementation under
      CONFIG_VIRT_CPU_ACCOUNTING_NATIVE which is the last user.
    
    * The vtime_account_user() call was only used on irq entry for
      CONFIG_VIRT_CPU_ACCOUNTING_GEN. We can remove that too.
    
    Signed-off-by: default avatarFrederic Weisbecker <fweisbec@gmail.com>
    Cc: Linus Torvalds <torvalds@linux-foundation.org>
    Cc: Mike Galbraith <efault@gmx.de>
    Cc: Paolo Bonzini <pbonzini@redhat.com>
    Cc: Peter Zijlstra <peterz@infradead.org>
    Cc: Radim Krcmar <rkrcmar@redhat.com>
    Cc: Rik van Riel <riel@redhat.com>
    Cc: Thomas Gleixner <tglx@linutronix.de>
    Cc: Wanpeng Li <wanpeng.li@hotmail.com>
    Link: http://lkml.kernel.org/r/1468421405-20056-4-git-send-email-fweisbec@gmail.com
    
    
    Signed-off-by: default avatarIngo Molnar <mingo@kernel.org>
    0cfdf9a1