diff options
author | Steven Rostedt (Red Hat) <srostedt@redhat.com> | 2013-03-07 14:27:42 (GMT) |
---|---|---|
committer | Steven Rostedt <rostedt@goodmis.org> | 2013-03-15 04:35:52 (GMT) |
commit | f5eb5588262cab7232ed1d77cf612b327db50767 (patch) | |
tree | 77ccc8e85f9be6af5cce5e689b6766a1fadf613b /drivers/cpufreq/mperf.h | |
parent | ad909e21bbe69f1d39055d346540abd827190eca (diff) | |
download | linux-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 'drivers/cpufreq/mperf.h')
0 files changed, 0 insertions, 0 deletions