FS: import F2FS

Signed-off-by: Paul Reioux <reioux@gmail.com>
arm/dt: hammerhead: change usb otg detection level

The vadc value on the USB ID pin should be less than 20 milivolts
when the otg cable has been connected.
However some devices return over 15 milivolts with PMIC ES 3.1
and couldn't recognize an otg cable connection in that case.
Fix this by adjusting vadc threshold value on the USB ID pin to 100 milivolts.

Bug: 13312153
Change-Id: I8342d447c1e3ab5861e702a24fa973df16b1ffb2
Signed-off-by: jude84.kim <jude84.kim@lge.com>
Signed-off-by: Devin Kim <dojip.kim@lge.com>
(cherry picked from commit df13a5d7a4328b193edf8111b82d7463b4bb71f6)

	eliminato:    arch/arm/configs/acs5k_defconfig
	eliminato:    arch/arm/configs/acs5k_tiny_defconfig
	eliminato:    arch/arm/configs/afeb9260_defconfig
	eliminato:    arch/arm/configs/ag5evm_defconfig
	eliminato:    arch/arm/configs/am200epdkit_defconfig
	eliminato:    arch/arm/configs/ap4evb_defconfig
	eliminato:    arch/arm/configs/apq8084_defconfig
	eliminato:    arch/arm/configs/assabet_defconfig
	eliminato:    arch/arm/configs/at91rm9200_defconfig
	eliminato:    arch/arm/configs/at91sam9260_defconfig
	eliminato:    arch/arm/configs/at91sam9261_defconfig
	eliminato:    arch/arm/configs/at91sam9263_defconfig
	eliminato:    arch/arm/configs/at91sam9g20_defconfig
	eliminato:    arch/arm/configs/at91sam9g45_defconfig
	eliminato:    arch/arm/configs/at91sam9rl_defconfig
	eliminato:    arch/arm/configs/at91x40_defconfig
	eliminato:    arch/arm/configs/badge4_defconfig
	eliminato:    arch/arm/configs/bcmring_defconfig
	eliminato:    arch/arm/configs/bonito_defconfig
	eliminato:    arch/arm/configs/cam60_defconfig
	eliminato:    arch/arm/configs/cerfcube_defconfig
	eliminato:    arch/arm/configs/cm_x2xx_defconfig
	eliminato:    arch/arm/configs/cm_x300_defconfig
	eliminato:    arch/arm/configs/cns3420vb_defconfig
	eliminato:    arch/arm/configs/colibri_pxa270_defconfig
	eliminato:    arch/arm/configs/colibri_pxa300_defconfig
	eliminato:    arch/arm/configs/collie_defconfig
	eliminato:    arch/arm/configs/corgi_defconfig
	eliminato:    arch/arm/configs/cpu9260_defconfig
	eliminato:    arch/arm/configs/cpu9g20_defconfig
	eliminato:    arch/arm/configs/da8xx_omapl_defconfig
	eliminato:    arch/arm/configs/davinci_all_defconfig
	eliminato:    arch/arm/configs/dove_defconfig
	eliminato:    arch/arm/configs/ebsa110_defconfig
	eliminato:    arch/arm/configs/edb7211_defconfig
	eliminato:    arch/arm/configs/em_x270_defconfig
	eliminato:    arch/arm/configs/ep93xx_defconfig
	eliminato:    arch/arm/configs/eseries_pxa_defconfig
	eliminato:    arch/arm/configs/exynos4_defconfig
	eliminato:    arch/arm/configs/ezx_defconfig
	eliminato:    arch/arm/configs/footbridge_defconfig
	eliminato:    arch/arm/configs/fortunet_defconfig
	eliminato:    arch/arm/configs/fsm9900_defconfig
	eliminato:    arch/arm/configs/fsm9xxx-perf_defconfig
	eliminato:    arch/arm/configs/fsm9xxx_defconfig
	eliminato:    arch/arm/configs/g3evm_defconfig
	eliminato:    arch/arm/configs/g4evm_defconfig
	eliminato:    arch/arm/configs/h3600_defconfig
	eliminato:    arch/arm/configs/h5000_defconfig
	eliminato:    arch/arm/configs/h7201_defconfig
	eliminato:    arch/arm/configs/h7202_defconfig
	eliminato:    arch/arm/configs/hackkit_defconfig
	eliminato:    arch/arm/configs/imote2_defconfig
	eliminato:    arch/arm/configs/imx_v4_v5_defconfig
	eliminato:    arch/arm/configs/imx_v6_v7_defconfig
	eliminato:    arch/arm/configs/integrator_defconfig
	eliminato:    arch/arm/configs/iop13xx_defconfig
	eliminato:    arch/arm/configs/iop32x_defconfig
	eliminato:    arch/arm/configs/iop33x_defconfig
	eliminato:    arch/arm/configs/ixp2000_defconfig
	eliminato:    arch/arm/configs/ixp23xx_defconfig
	eliminato:    arch/arm/configs/ixp4xx_defconfig
	eliminato:    arch/arm/configs/jornada720_defconfig
	eliminato:    arch/arm/configs/kirkwood_defconfig
	eliminato:    arch/arm/configs/kota2_defconfig
	eliminato:    arch/arm/configs/ks8695_defconfig
	eliminato:    arch/arm/configs/lart_defconfig
	eliminato:    arch/arm/configs/lpc32xx_defconfig
	eliminato:    arch/arm/configs/lpd270_defconfig
	eliminato:    arch/arm/configs/lubbock_defconfig
	eliminato:    arch/arm/configs/mackerel_defconfig
	eliminato:    arch/arm/configs/magician_defconfig
	eliminato:    arch/arm/configs/mainstone_defconfig
	eliminato:    arch/arm/configs/marzen_defconfig
	eliminato:    arch/arm/configs/mini2440_defconfig
	eliminato:    arch/arm/configs/mmp2_defconfig
	eliminato:    arch/arm/configs/mpq8092_defconfig
	eliminato:    arch/arm/configs/msm7627a-perf_defconfig
	eliminato:    arch/arm/configs/msm7627a_defconfig
	eliminato:    arch/arm/configs/msm8226-perf_defconfig
	eliminato:    arch/arm/configs/msm8226_defconfig
	eliminato:    arch/arm/configs/msm8610-perf_defconfig
	eliminato:    arch/arm/configs/msm8610_defconfig
	eliminato:    arch/arm/configs/msm8660-perf_defconfig
	eliminato:    arch/arm/configs/msm8660_defconfig
	eliminato:    arch/arm/configs/msm8960-perf_defconfig
	eliminato:    arch/arm/configs/msm8960_defconfig
	eliminato:    arch/arm/configs/msm8974-perf_defconfig
	eliminato:    arch/arm/configs/msm9615_defconfig
	eliminato:    arch/arm/configs/msm9625-perf_defconfig
	eliminato:    arch/arm/configs/msm9625_defconfig
	eliminato:    arch/arm/configs/msm_defconfig
	eliminato:    arch/arm/configs/msmkrypton_defconfig
	eliminato:    arch/arm/configs/mv78xx0_defconfig
	eliminato:    arch/arm/configs/mxs_defconfig
	eliminato:    arch/arm/configs/neponset_defconfig
	eliminato:    arch/arm/configs/netwinder_defconfig
	eliminato:    arch/arm/configs/netx_defconfig
	eliminato:    arch/arm/configs/nhk8815_defconfig
	eliminato:    arch/arm/configs/nuc910_defconfig
	eliminato:    arch/arm/configs/nuc950_defconfig
	eliminato:    arch/arm/configs/nuc960_defconfig
	eliminato:    arch/arm/configs/omap1_defconfig
	eliminato:    arch/arm/configs/omap2plus_defconfig
	eliminato:    arch/arm/configs/orion5x_defconfig
	eliminato:    arch/arm/configs/palmz72_defconfig
	eliminato:    arch/arm/configs/pcm027_defconfig
	eliminato:    arch/arm/configs/pleb_defconfig
	eliminato:    arch/arm/configs/pnx4008_defconfig
	rinominato:    arch/arm/configs/hammerhead_defconfig -> arch/arm/configs/purified_defconfig
	eliminato:    arch/arm/configs/pxa168_defconfig
	eliminato:    arch/arm/configs/pxa255-idp_defconfig
	eliminato:    arch/arm/configs/pxa3xx_defconfig
	eliminato:    arch/arm/configs/pxa910_defconfig
	eliminato:    arch/arm/configs/qil-a9260_defconfig
	eliminato:    arch/arm/configs/raumfeld_defconfig
	eliminato:    arch/arm/configs/realview-smp_defconfig
	eliminato:    arch/arm/configs/realview_defconfig
	eliminato:    arch/arm/configs/rpc_defconfig
	eliminato:    arch/arm/configs/s3c2410_defconfig
	eliminato:    arch/arm/configs/s3c6400_defconfig
	eliminato:    arch/arm/configs/s5p64x0_defconfig
	eliminato:    arch/arm/configs/s5pc100_defconfig
	eliminato:    arch/arm/configs/s5pv210_defconfig
	eliminato:    arch/arm/configs/sam9_l9260_defconfig
	eliminato:    arch/arm/configs/shannon_defconfig
	eliminato:    arch/arm/configs/shark_defconfig
	eliminato:    arch/arm/configs/simpad_defconfig
	eliminato:    arch/arm/configs/spear3xx_defconfig
	eliminato:    arch/arm/configs/spear6xx_defconfig
	eliminato:    arch/arm/configs/spitz_defconfig
	eliminato:    arch/arm/configs/stamp9g20_defconfig
	eliminato:    arch/arm/configs/tct_hammer_defconfig
	eliminato:    arch/arm/configs/tegra_defconfig
	eliminato:    arch/arm/configs/trizeps4_defconfig
	eliminato:    arch/arm/configs/u300_defconfig
	eliminato:    arch/arm/configs/u8500_defconfig
	eliminato:    arch/arm/configs/usb-a9260_defconfig
	eliminato:    arch/arm/configs/versatile_defconfig
	eliminato:    arch/arm/configs/vexpress_defconfig
	eliminato:    arch/arm/configs/viper_defconfig
	eliminato:    arch/arm/configs/xcep_defconfig
	eliminato:    arch/arm/configs/zeus_defconfig
msm: camera: return -EIO if daemon hasn't fully launched

Media server depends on camera daemon to be fully launched
to be able to get camera info. Return -EIO if daemon hasn't
subscribed to v4l2 device node. This gives HAL opportunity
to try again.

Bug: 10577806
Signed-off-by: Shuzhen Wang <shuzhenw@codeaurora.org>
(cherry picked from commit d562b2f9774d9251068dbded5ad15a1c7407824f)

Change-Id: Iebc51c8e56352e02ef5f0554c9eb5ac2bf629595

Conflicts:
	drivers/media/platform/msm/camera_v2/msm.c

	modificato:   drivers/media/platform/msm/camera_v2/msm.c
msm: camera: Do not ignore ERESTARTSYS return from wait function

By ignoring ERESTARTSYS return from wait function, the thread
could potentially hold up the freezing of the task for a long
time, causing battery drain.

Bug: 10577806
Signed-off-by: Shuzhen Wang <shuzhenw@codeaurora.org>
Change-Id: I653c06c6bf41b07c811d6bab33e3c839460f45b6
(cherry picked from commit db69933cd572bb7f6fc6ede66175dc4adfdd8217)
msm: jpeg: Handle ERESTARTSYS properly

ERESTARTSYS return code for wait_* functions should be
propogated all the way to ioctl call.

Bug: 11856490
Signed-off-by: Shuzhen Wang <shuzhenw@codeaurora.org>

	modificato:   Makefile
Remove '+' symbol from kernel version string

Signed-off-by: franciscofranco <franciscofranco.1990@gmail.com>
Signed-off-by: Francisco Franco <franciscofranco.1990@gmail.com>
Enable pipe flag.

Signed-off-by: franciscofranco <franciscofranco.1990@gmail.com>
Signed-off-by: Francisco Franco <franciscofranco.1990@gmail.com>
Added fsync on/off support.

Signed-off-by: Francisco Franco <franciscofranco.1990@gmail.com>
fs: sync: enable fsync by default.

Signed-off-by: franciscofranco <franciscofranco.1990@gmail.com>
Signed-off-by: Francisco Franco <franciscofranco.1990@gmail.com>
fs: sync: add missing return if fsync is disabled from userspace.

Signed-off-by: Francisco Franco <franciscofranco.1990@gmail.com>
Revert "sched_avg: add run queue averaging."

We're not using this so lets save calls every time there is run_queue change.

This reverts commit e163bf662abb0a69aa08ed72885d1fae23a5b8c2.
msm: do not compile rq_stats.

Signed-off-by: Francisco Franco <franciscofranco.1990@gmail.com>
sched: Fix clear NOHZ_BALANCE_KICK

I have faced a sequence where the Idle Load Balance was sometime not
triggered for a while on my platform, in the following scenario:

 CPU 0 and CPU 1 are running tasks and CPU 2 is idle

 CPU 1 kicks the Idle Load Balance
 CPU 1 selects CPU 2 as the new Idle Load Balancer
 CPU 2 sets NOHZ_BALANCE_KICK for CPU 2
 CPU 2 sends a reschedule IPI to CPU 2

 While CPU 3 wakes up, CPU 0 or CPU 1 migrates a waking up task A on CPU 2

 CPU 2 finally wakes up, runs task A and discards the Idle Load Balance
       task A quickly goes back to sleep (before a tick occurs on CPU 2)
 CPU 2 goes back to idle with NOHZ_BALANCE_KICK set

Whenever CPU 2 will be selected as the ILB, no reschedule IPI will be sent
because NOHZ_BALANCE_KICK is already set and no Idle Load Balance will be
performed.

We must wait for the sched softirq to be raised on CPU 2 thanks to another
part the kernel to come back to clear NOHZ_BALANCE_KICK.

The proposed solution clears NOHZ_BALANCE_KICK in schedule_ipi if
we can't raise the sched_softirq for the Idle Load Balance.

Change since V1:

- move the clear of NOHZ_BALANCE_KICK in got_nohz_idle_kick if the ILB
  can't run on this CPU (as suggested by Peter)

Signed-off-by: Vincent Guittot <vincent.guittot@linaro.org>
Signed-off-by: Peter Zijlstra <peterz@infradead.org>
Link: http://lkml.kernel.org/r/1370419991-13870-1-git-send-email-vincent.guittot@linaro.org
Signed-off-by: Ingo Molnar <mingo@kernel.org>
Git-commit: 873b4c65b519fd769940eb281f77848227d4e5c1
Git-repo: git://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
[smuckle@codeaurora.org: minor merge resolution for 3.4 in scheduler_ipi()]
Signed-off-by: Steve Muckle <smuckle@codeaurora.org>
Change-Id: I3548612057cccc2ecc29429c129c44183083831f