[PATCH 1/1] msm: qdsp5: Replace use of clk_set_min_rate() with clk_set_rate()

Support for the proprietary clk_set_min_rate() API is being
discontinued. Move to clk_set_rate() instead, which is configured
to do the same thing for the clocks used by the adsp drivers.

Change-Id: Ia7ca43fab707f15af19f8afb6d393e82e48808a6
Signed-off-by: Matt Wagantall <mattw@codeaurora.org>
[PATCH 1/1] msm: audio: qdsp5v2: Update driver with missing code

Updated adpcm, wma, wmapro decoder driver and aac, qcelp,
evrc encoder driver for missing code.

CRs-fixed: 294760
Signed-off-by: Rajesha Kini <rkini@codeaurora.org>
(cherry picked from commit 930bdb5828145d8a1576d0c468101560301ccb33)

Change-Id: Idd1723320259f6d6428b3fa6f3d6c7bcfaf01d5b
Signed-off-by: Sunil Joseph <sunilj@codeaurora.org>
arm/vfp: vfp_pm_suspend: Use local variable instead of rereading from register
The fpexc variable already stores the value in the FPEXC register.

Use this instead of reading the value again from the register.

Signed-off-by: Kautuk Consul <consul.kautuk@gmail.com>
[PATCH] msm: audio: qdsp5v2: Send write done for every buffer

The buffer size is greater than bytes consumed for
the first buffer leading to write done not being sent
for the first buffer. The bytes consumed represent
the bytes rendered by DSP and not the bytes copied
to DSP. Removing this check for write done.

CRs-fixed: 327431
Signed-off-by: Vinay Vaka <vvaka@codeaurora.org>
(cherry picked from commit da3b4aff18e0d7dbe7915839345c66694e6be35f)

Change-Id: Iaec884ad377cbd552439db646cad1e5b87328ff3
Signed-off-by: Padakandla Phani Kumar <pphani@codeaurora.org>
[PATCH] msm: audio: qdsp5v2: Add memory barriers for readl and writel
[PATCH] hdmi_common.c: aspect ratio as 4:3 if within specificed range , rathaer than being absolute value
msm: clock-7x30: Add 24.576MHz rate from LPXO for SPI_CLK

Change-Id: I9af2b59fb5d971f17100b4c4cb5ee5439eed60ac
Signed-off-by: Matt Wagantall <mattw@codeaurora.org>
sched: Do not block when waiting to free old root domain

Instead of calling synchronize_sched(), directly invoke
call_rcu_sched() which will not block the cpu hotplug
operation but will call free_rootdomain when the rcu
process is complete. This is safe because the root
domains are allocated dynamically so any new readers
will have pointers to the new data and the new data
does not overwrite the old data.

This is a partial backport from 3.0.0 kernel.
I did not backport the dynamic allocation of the sched
domain and sched group data structures.  This would
require inclusion of 10 other patches and would not be
stable.

dce840a08702bd13a9a186e07e63d1ef82256b5e
Author: Peter Zijlstra <a.p.zijlstra@chello.nl>
Date:   Thu Apr 7 14:09:50 2011 +0200

    sched: Dynamically allocate sched_domain/sched_group data-structures

    Instead of relying on static allocations for the sched_domain and
    sched_group trees, dynamically allocate and RCU free them.

    Allocating this dynamically also allows for some build_sched_groups()
    simplification since we can now (like with other simplifications) rely
    on the sched_domain tree instead of hard-coded knowledge.

    One tricky to note is that detach_destroy_domains() needs to hold
    rcu_read_lock() over the entire tear-down, per-cpu is not sufficient
    since that can lead to partial sched_group existance (could possibly
    be solved by doing the tear-down backwards but this is much more
    robust).

    A concequence of the above is that we can no longer print the
    sched_domain debug stuff from cpu_attach_domain() since that might now
    run with preemption disabled (due to classic RCU etc.) and
    sched_domain_debug() does some GFP_KERNEL allocations.

    Another thing to note is that we now fully rely on normal RCU and not
    RCU-sched, this is because with the new and exiting RCU flavours we
    grew over the years BH doesn't necessarily hold off RCU-sched grace
    periods (-rt is known to break this). This would in fact already cause
    us grief since we do sched_domain/sched_group iterations from softirq
    context.

    This patch is somewhat larger than I would like it to be, but I didn't
    find any means of shrinking/splitting this.

Signed-off-by: Peter Zijlstra <a.p.zijlstra@chello.nl>
Cc: Mike Galbraith <efault@gmx.de>
Cc: Nick Piggin <npiggin@kernel.dk>
Cc: Linus Torvalds <torvalds@linux-foundation.org>
Cc: Andrew Morton <akpm@linux-foundation.org>
    Link: http://lkml.kernel.org/r/20110407122942.245307941@chello.nl
Signed-off-by: Ingo Molnar <mingo@elte.hu>

Signed-off-by: Maya Spivak <mspivak@codeaurora.org>
(cherry picked from commit 09d39b8ade298ffed33597926a1b30f4609400a6)

Change-Id: I7305af949900919f06cf3444daf1183370aa07b7
Signed-off-by: Swetha Basineni <sbasin@codeaurora.org>