]> git.proxmox.com Git - mirror_ubuntu-eoan-kernel.git/commit
kernel/profile.c: remove some duplicate code from profile_hits()
authorRakib Mullick <rakib.mullick@gmail.com>
Thu, 26 May 2011 23:26:00 +0000 (16:26 -0700)
committerLinus Torvalds <torvalds@linux-foundation.org>
Fri, 27 May 2011 00:12:37 +0000 (17:12 -0700)
commit6f7bd76f05eb2bfbb48d58c0408a50a7e16b2423
treea6a5c66d200e112cc629b392eafbaa026e1c57bf
parentd98808a253f209465ed9f415c565f4c294a213b8
kernel/profile.c: remove some duplicate code from profile_hits()

profile_hits() has a common check for prof_on and prof_buffer regardless
of SMP or !SMP.  So, remove some duplicate code by splitting profile_hits
into two.

[akpm@linux-foundation.org: make do_profile_hits static]
Signed-off-by: Rakib Mullick <rakib.mullick@gmail.com>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
kernel/profile.c