yas529: Fix deadlock when disabling immediately after enabling

Google Navigation does this and deadlocks the entire sensor system

Change-Id: I421c947758e0681c0cfb9ea8809ea00397f4800a
Revert "Fix power supspend cpu frequency, thanks to nubecoder."

Revert in favor of more refined patch by mkasick.

This reverts commit 0cb341c54d3030e4bbe1b241357a21d9b6adf9aa.
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
Revert "Fix 1100 freq. table, tweak 600 & 1300, thanks to toadlife tip."

Revert in preparation of cleaner OC code.

This reverts commit e552d7cdc0d2d7538fb49156ba7d7779814d7190.
Revert "Add 600MHz, 900MHz, 1.1GHz, 1.2Gz, 1.3GHz, & 1.4GHz, thanks to nubecoder."

Part 2: Preparation of cleaner OC code.

This reverts commit 3f071e2d03616db89aa512e3a48813bdbea6a440.
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.
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
Revert "Define safe initial min and max speeds on boot, thanks to nubecoder."

Part 3: Preparation for cleaner OC code.

This reverts commit 847cfac9eaa03297c7f485a73694ce92e8dd7b3f.
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
Add 1.1GHz, 1.3GHz, 1.4GHz, 1.5GHz & UV Support.

New frequency tables based on cleaner OC code by mkasick.  All new
frequencies are disabled by default.
Update initramfs to beta3.
Update kernel version number.
Merge branch 'beta3-dev' into ics