summaryrefslogtreecommitdiff
path: root/kernel/cred.c
diff options
context:
space:
mode:
authorSteven Rostedt (Red Hat) <srostedt@redhat.com>2013-03-07 14:27:42 (GMT)
committerSteven Rostedt <rostedt@goodmis.org>2013-03-15 04:35:52 (GMT)
commitf5eb5588262cab7232ed1d77cf612b327db50767 (patch)
tree77ccc8e85f9be6af5cce5e689b6766a1fadf613b /kernel/cred.c
parentad909e21bbe69f1d39055d346540abd827190eca (diff)
downloadlinux-fsl-qoriq-f5eb5588262cab7232ed1d77cf612b327db50767.tar.xz
ring-buffer: Do not use schedule_work_on() for current CPU
The ring buffer updates when done while the ring buffer is active, needs to be completed on the CPU that is used for the ring buffer per_cpu buffer. To accomplish this, schedule_work_on() is used to schedule work on the given CPU. Now there's no reason to use schedule_work_on() if the process doing the update happens to be on the CPU that it is processing. It has already filled the requirement. Instead, just do the work and continue. This is needed for tracing_snapshot_alloc() where it may be called really early in boot, where the work queues have not been set up yet. Signed-off-by: Steven Rostedt <rostedt@goodmis.org>
Diffstat (limited to 'kernel/cred.c')
0 files changed, 0 insertions, 0 deletions