]> git.baikalelectronics.ru Git - kernel.git/commit
irqchip: mips-gic: Add new functions to start/stop the GIC counter
authorMarkos Chandras <markos.chandras@imgtec.com>
Mon, 23 Mar 2015 12:32:01 +0000 (12:32 +0000)
committerJason Cooper <jason@lakedaemon.net>
Sun, 29 Mar 2015 20:08:23 +0000 (20:08 +0000)
commit62d0251f7bb3d79e2a462303a7c43a9f1ed49447
treea6d26f5e387e3dd13c6a7f61bdba4071ea53406c
parentba190e2afdd69f36cfb794aa772ae594824af984
irqchip: mips-gic: Add new functions to start/stop the GIC counter

We add new functions to start and stop the GIC counter since there are no
guarantees the counter will be running after a CPU reset. The GIC counter
is stopped by setting the 29th bit on the GIC Config register and it is
started by clearing that bit.

Cc: Thomas Gleixner <tglx@linutronix.de>
Cc: Jason Cooper <jason@lakedaemon.net>
Cc: Andrew Bresticker <abrestic@chromium.org>
Cc: Qais Yousef <qais.yousef@imgtec.com>
Cc: <linux-kernel@vger.kernel.org>
Signed-off-by: Markos Chandras <markos.chandras@imgtec.com>
Link: https://lkml.kernel.org/r/1427113923-9840-2-git-send-email-markos.chandras@imgtec.com
Signed-off-by: Jason Cooper <jason@lakedaemon.net>
drivers/irqchip/irq-mips-gic.c
include/linux/irqchip/mips-gic.h