SDIO: optimized SDIO IRQ handling for single function

  From: Stefan Nilsson XK <stefan.xk.nilsson at stericsson.com>
  *
  If there is only 1 function registered, and IRQ:s are supported and
  currently enabled, call the callback handler directly
  without checking the CCCR registers.

  Signed-off-by: Stefan Nilsson XK <stefan.xk.nilsson at stericsson.com>
  Signed-off-by: Per Forlin <per.forlin at linaro.org>
Bluetooth: Fix possible WakeLock
scheduler: compute time-average nr_running per run-queue

Compute the time-average number of running tasks per run-queue for a
trailing window of a fixed time period. The detla add/sub to the
average value is weighted by the amount of time per nr_running value
relative to the total measurement period.

Change-Id: I076e24ff4ed65bed3b8dd8d2b279a503318071ff
Signed-off-by: Diwakar Tundlam <dtundlam@nvidia.com>
Reviewed-by: Sai Gurrappadi <sgurrappadi@nvidia.com>
Tested-by: Sai Gurrappadi <sgurrappadi@nvidia.com>
Reviewed-by: Peter Boonstoppel <pboonstoppel@nvidia.com>
Reviewed-by: Yu-Huan Hsu <yhsu@nvidia.com>
msm: kgsl: Process all idle checks

Rather than ignore some categories of idle events,
bin the events with small timelines and process all
events with the GPU DCVS algorithm.

CRs-Fixed: 427559
Signed-off-by: Lucille Sylvester <lsylvest@codeaurora.org>
Change-Id: I1a5e8d8af6020a08cf95a9daa934e825bc5f2854