[IA64] Count resched interrupts
Count the number of "resched" interrupts that each cpu receives. Signed-off-by: Jack Steiner <steiner@sgi.com> Signed-off-by: Tony Luck <tony.luck@intel.com>
This commit is contained in:
parent
2199026773
commit
9b3377f992
1 changed files with 18 additions and 2 deletions
|
@ -180,7 +180,9 @@ ia64_handle_irq (ia64_vector vector, struct pt_regs *regs)
|
||||||
saved_tpr = ia64_getreg(_IA64_REG_CR_TPR);
|
saved_tpr = ia64_getreg(_IA64_REG_CR_TPR);
|
||||||
ia64_srlz_d();
|
ia64_srlz_d();
|
||||||
while (vector != IA64_SPURIOUS_INT_VECTOR) {
|
while (vector != IA64_SPURIOUS_INT_VECTOR) {
|
||||||
if (!IS_RESCHEDULE(vector)) {
|
if (unlikely(IS_RESCHEDULE(vector)))
|
||||||
|
kstat_this_cpu.irqs[vector]++;
|
||||||
|
else {
|
||||||
ia64_setreg(_IA64_REG_CR_TPR, vector);
|
ia64_setreg(_IA64_REG_CR_TPR, vector);
|
||||||
ia64_srlz_d();
|
ia64_srlz_d();
|
||||||
|
|
||||||
|
@ -225,7 +227,9 @@ void ia64_process_pending_intr(void)
|
||||||
* Perform normal interrupt style processing
|
* Perform normal interrupt style processing
|
||||||
*/
|
*/
|
||||||
while (vector != IA64_SPURIOUS_INT_VECTOR) {
|
while (vector != IA64_SPURIOUS_INT_VECTOR) {
|
||||||
if (!IS_RESCHEDULE(vector)) {
|
if (unlikely(IS_RESCHEDULE(vector)))
|
||||||
|
kstat_this_cpu.irqs[vector]++;
|
||||||
|
else {
|
||||||
struct pt_regs *old_regs = set_irq_regs(NULL);
|
struct pt_regs *old_regs = set_irq_regs(NULL);
|
||||||
|
|
||||||
ia64_setreg(_IA64_REG_CR_TPR, vector);
|
ia64_setreg(_IA64_REG_CR_TPR, vector);
|
||||||
|
@ -258,11 +262,22 @@ void ia64_process_pending_intr(void)
|
||||||
#ifdef CONFIG_SMP
|
#ifdef CONFIG_SMP
|
||||||
extern irqreturn_t handle_IPI (int irq, void *dev_id);
|
extern irqreturn_t handle_IPI (int irq, void *dev_id);
|
||||||
|
|
||||||
|
static irqreturn_t dummy_handler (int irq, void *dev_id)
|
||||||
|
{
|
||||||
|
BUG();
|
||||||
|
}
|
||||||
|
|
||||||
static struct irqaction ipi_irqaction = {
|
static struct irqaction ipi_irqaction = {
|
||||||
.handler = handle_IPI,
|
.handler = handle_IPI,
|
||||||
.flags = IRQF_DISABLED,
|
.flags = IRQF_DISABLED,
|
||||||
.name = "IPI"
|
.name = "IPI"
|
||||||
};
|
};
|
||||||
|
|
||||||
|
static struct irqaction resched_irqaction = {
|
||||||
|
.handler = dummy_handler,
|
||||||
|
.flags = SA_INTERRUPT,
|
||||||
|
.name = "resched"
|
||||||
|
};
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
void
|
void
|
||||||
|
@ -287,6 +302,7 @@ init_IRQ (void)
|
||||||
register_percpu_irq(IA64_SPURIOUS_INT_VECTOR, NULL);
|
register_percpu_irq(IA64_SPURIOUS_INT_VECTOR, NULL);
|
||||||
#ifdef CONFIG_SMP
|
#ifdef CONFIG_SMP
|
||||||
register_percpu_irq(IA64_IPI_VECTOR, &ipi_irqaction);
|
register_percpu_irq(IA64_IPI_VECTOR, &ipi_irqaction);
|
||||||
|
register_percpu_irq(IA64_IPI_RESCHEDULE, &resched_irqaction);
|
||||||
#endif
|
#endif
|
||||||
#ifdef CONFIG_PERFMON
|
#ifdef CONFIG_PERFMON
|
||||||
pfm_init_percpu();
|
pfm_init_percpu();
|
||||||
|
|
Loading…
Add table
Reference in a new issue