ext4: Speedup WB_SYNC_ALL pass called from sync(2)

When doing filesystem wide sync, there's no need to force transaction
commit (or synchronously write inode buffer) separately for each inode
because ext4_sync_fs() takes care of forcing commit at the end (VFS
takes care of flushing buffer cache, respectively). Most of the time
this slowness doesn't manifest because previous WB_SYNC_NONE writeback
doesn't leave much to write but when there are processes aggressively
creating new files and several filesystems to sync, the sync slowness
can be noticeable. In the following test script sync(1) takes around 6
minutes when there are two ext4 filesystems mounted on a standard SATA
drive. After this patch sync takes a couple of seconds so we have about
two orders of magnitude improvement.

      function run_writers
      {
        for (( i = 0; i < 10; i++ )); do
          mkdir $1/dir$i
          for (( j = 0; j < 40000; j++ )); do
            dd if=/dev/zero of=$1/dir$i/$j bs=4k count=4 &>/dev/null
          done &
        done
      }

      for dir in "$@"; do
        run_writers $dir
      done

      sleep 40
      time sync

Signed-off-by: Jan Kara <jack@suse.cz>
Signed-off-by: "Theodore Ts'o" <tytso@mit.edu>
Signed-off-by: Chet Kener <Cl3Kener@gmail.com>
Signed-off-by: flar2 <asegaert@gmail.com>
Revert "ext4: Speedup WB_SYNC_ALL pass called from sync(2)"

This reverts commit 971ba8b3837f397be78035f8b85545398bb6f034.
cpufreq: cpu-boost: Add cpu-boost driver

Signed-off-by: engstk <eng.stk@sapo.pt>

Conflicts:
	drivers/cpufreq/Kconfig
	drivers/cpufreq/Makefile
 defconfig: enable cpu-boost
cpufreq: cpu-boost: Use hotplug thread infrastructure, upstream CAF updates, small fixes

Signed-off-by: engstk <eng.stk@sapo.pt>
Revert "cpufreq: cpu-boost: Use hotplug thread infrastructure, upstream CAF updates, small fixes"

This reverts commit 8f1d9601e35f8a3d21f2e293e55ff1dfdbfaafdb.
soc: qcom: rq_stats: Pass correct cpu id to update_average_load function

Pass correct cpu number to update_average_load function
from cpufreq_transition_handler function. Also avoid div by zero
condition in update_average_load function.

CRs-Fixed: 708310
Change-Id: I4ec3e54b92c760ac5fa910542524fdfe919f55e9
Signed-off-by: Prasad Sodagudi <psodagud@codeaurora.org>