ring-buffer: remove unneeded get_online_cpus
authorSteven Rostedt <srostedt@redhat.com>
Thu, 12 Mar 2009 17:13:49 +0000 (13:13 -0400)
committerSteven Rostedt <srostedt@redhat.com>
Fri, 13 Mar 2009 01:14:59 +0000 (21:14 -0400)
commit8aabee573dff131a085c63de7667eacd94ba4ccb
tree923c02126de3e55148df132a89a7d2151df855b7
parent59222efe2d184956464abe5b637bc842ff053b93
ring-buffer: remove unneeded get_online_cpus

Impact: speed up and remove possible races

The get_online_cpus was added to the ring buffer because the original
design would free the ring buffer on a CPU that was being taken
off line. The final design kept the ring buffer around even when the
CPU was taken off line. This is to allow a user to still read the
information on that ring buffer.

Most of the get_online_cpus are no longer needed since the ring buffer will
not disappear from the use cases.

Reported-by: KOSAKI Motohiro <kosaki.motohiro@jp.fujitsu.com>
Signed-off-by: Steven Rostedt <srostedt@redhat.com>
kernel/trace/ring_buffer.c