From: Tejun Heo Date: Fri, 15 Oct 2010 13:51:08 +0000 (-0400) Subject: oprofile: Remove deprecated use of flush_scheduled_work() X-Git-Tag: v2.6.37-rc1~18^2~1 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=3d7851b3cdd43a734e5cc4c643fd886ab28ad4d5;p=pandora-kernel.git oprofile: Remove deprecated use of flush_scheduled_work() flush_scheduled_work() is deprecated and scheduled to be removed. sync_stop() currently cancels cpu_buffer works inside buffer_mutex and flushes the system workqueue outside. Instead, split end_cpu_work() into two parts - stopping further work enqueues and flushing works - and do the former inside buffer_mutex and latter outside. For stable kernels v2.6.35.y and v2.6.36.y. Signed-off-by: Tejun Heo Cc: stable@kernel.org Signed-off-by: Robert Richter --- Reading git-diff-tree failed