Call cpufreq_update_policy on DVFS events and force SLEEP_FREQ on suspend.

Calls cpufreq_update_policy on DVFS lock/unlock events to ensure that DVFS
locks take effect with the governor's preferred frequency (if higher than
the lock frequency).  Previously the lock would set the frequency to the
target level and expect the governor to reevaluate on a timer, which
ondemand does, but powersave and performance do not.

Forces the cpufreq policy, when suspending, to include SLEEP_FREQ, so as to
prevent the device from crashing due to use of a "wrong" frequency.  Commit
is based on [1], but includes additional locking to ensure policy isn't
overwritten just prior to calling cpufreq_driver_target.  Also ensures that
the user-specified cpufreq policy is reevaluated on resume, which is not
done in the stock version.

[1] https://github.com/nubecoder/nubernel-2.6.35/commit/6255b550af8c4f9d342ac4806e382dccfb40f4b6

Change-Id: Ia50f1c9d1365ddfbcf4543f8acb4d00984284388
Use DVFS locks instead of cpufreq policy mangling in pvr.

The pvr driver requires that the memory bus speed is kept fast while the
GPU is active.  Since the memory bus speed is tied to the CPU frequency,
pvr (previously) used a cpufreq notifier called on policy updates to ensure
the CPU is running at a minimum 200 MHz while active.  The problem with
this approach is that any changes to scaling_min_freq while the GPU is
active (e.g., while interacting with the Processor settings menu) get
clamped to 200 MHz, which persists even when the GPU is inactive.

By switching to DVFS locks, changes to scaling_min_freq persist, and so
allows the use of 100 MHz when the GPU is inactive.  Fixes epiccm #14.

Change-Id: I4f40ffb8122dd8bdec5bac3a9735c7dbe72dd271
Add dvfs_printk_mask sysfs attribute to mask printing of DVFS lock events.

Defaults to printing events of all token types except DVFS_LOCK_TOKEN_PVR,
since GPU DVFS locks are very frequent and flood the kmsg buffer.

Change-Id: Iee9beec0a107f033b1c86f45e1025d97c229c638
Reduce framebuffer NR size from 7 to 6, frees 1.5MB RAM to userspace.

Change-Id: I7badaa727e60c2bbe593ae00d1654734bfbc11b7
epicmtd: Remove powersave cpufreq governor

Change-Id: Ieecc338aa7ed812d47960c683078cec4b45ed3cd
On slide open, set keyboard backlight to configured state, not always on.
Add 1.2GHz overclock, disabled by default.

Simplified version of the Epic 4G overclock code.  Adds the 1.2GHz option,
but sets default scaling_max_freq to 1.0 GHz for those who don't wish to
overclock.  600MHz is not included.

Change-Id: I43a9d09fc59de25e0b3d2b94b1d2f01bd2606253
Omnibus fixes for cypress-touchkey.

- Use msleep instead of mdelay for i2c_touchkey_write retries.

- Delay turning backlight on until key release.  Fixes a long-standing
  problem where long-presses while the backlight is off register as
  short-presses.

- Heuristically determine when the "buttons" light is off in
  liblight/framework, and minimize the amount of time the key lights
  automatically come on.  Makes Screen Filter's soft-key backlight disable
  feature far more useful.

- Add key_off_delay and resume_delay sysfs entries to control how long to
  wait before explicitly shutting off the backlight on key presses
  (releases) and screen on.  These take effect when the "buttons" light is
  off in liblight/framework, and the backlight shouldn't come on in the
  first place.  Although ideally, we'd like to prevent the lights from
  coming on in the first place.

- Add locking between liblight interface (touch_led_control), early
  suspend/late resume, and the key press/release interrupt thread.

Change-Id: I3f1c75bab0ab2e9dd05ce11d410c5063a00533c3
Add sysfs control for capacitive backlights.

With a value of 1 written to /sys/devices/virtual/sec/t_key/touchleds_disabled,
the capacitive button backlights will timeout but will not be allowed to re-light
unless pressed.  A value of 0 will restore original backlight operation.

Allows for advanced settings control via patch: http://review.cyanogenmod.com/#/c/15421

Change-Id: I22cde63c4679f4688a45310c4166b5217f665438
epicmtd: Add CIFS and FUSE to kernel

Change-Id: I13948933c1144c33164b3ae6ac3da1f90a9f515e
Increase FIMC and MFC buffers, and bring in upstream videodev2 header updates.

Change-Id: I084a5cf9d6dc4a6b53a59698ed9fc5d774775ab8
VICTORY: increase /system +75mb and decrease /data -75mb
WARNING - THIS WILL CAUSE /DATA TO BE ERASED ON FIRST INSTALL

Change-Id: Ia61b68e52bcaee70f570a12997fd2748533dcdc8