summaryrefslogtreecommitdiffstats
path: root/include/linux/pid.h
diff options
context:
space:
mode:
authorViresh Kumar <viresh.kumar@st.com>2012-04-17 16:45:37 +0530
committerMike Turquette <mturquette@linaro.org>2012-04-24 16:37:40 -0700
commitfbc42aab543307e9bfc1dfb029db929f3fafcacd (patch)
treea9d86234545e39a1ce8fd69302c2b1ff85d292c7 /include/linux/pid.h
parent1f73f31ad6e37df0679f6842b7405d96515ec8b1 (diff)
downloadblackbird-op-linux-fbc42aab543307e9bfc1dfb029db929f3fafcacd.tar.gz
blackbird-op-linux-fbc42aab543307e9bfc1dfb029db929f3fafcacd.zip
clk: clk-gate: Create clk_gate_endisable()
This patch tries to remove duplicate code for clk_gate clocks. This creates another routine clk_gate_endisable() which will take care of enable/disable clock with knowledge of CLK_GATE_SET_TO_DISABLE flag. It works on following logic: For enabling clock, enable = 1 set2dis = 1 -> clear bit -> set = 0 set2dis = 0 -> set bit -> set = 1 For disabling clock, enable = 0 set2dis = 1 -> set bit -> set = 1 set2dis = 0 -> clear bit -> set = 0 So, result is always: enable xor set2dis. Signed-off-by: Viresh Kumar <viresh.kumar@st.com> Signed-off-by: Mike Turquette <mturquette@linaro.org>
Diffstat (limited to 'include/linux/pid.h')
0 files changed, 0 insertions, 0 deletions
OpenPOWER on IntegriCloud