Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 177876
b: refs/heads/master
c: 937893c
h: refs/heads/master
v: v3
  • Loading branch information
Wu Zhangjin authored and Ralf Baechle committed Dec 17, 2009
1 parent 7b293dd commit 5c55f04
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 2 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: a3ed495190ebe918f4584291ed8c76f1c97a84fd
refs/heads/master: 937893cf5be53203eabc6f4db29f86b1fdeea203
5 changes: 4 additions & 1 deletion trunk/arch/mips/oprofile/op_model_loongson2.c
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
/*
* Loongson2 performance counter driver for oprofile
*
* Copyright (C) 2009 Lemote Inc. & Insititute of Computing Technology
* Copyright (C) 2009 Lemote Inc.
* Author: Yanhua <yanh@lemote.com>
* Author: Wu Zhangjin <wuzj@lemote.com>
*
Expand Down Expand Up @@ -125,6 +125,9 @@ static irqreturn_t loongson2_perfcount_handler(int irq, void *dev_id)
*/

/* Check whether the irq belongs to me */
enabled = read_c0_perfcnt() & LOONGSON2_PERFCNT_INT_EN;
if (!enabled)
return IRQ_NONE;
enabled = reg.cnt1_enabled | reg.cnt2_enabled;
if (!enabled)
return IRQ_NONE;
Expand Down

0 comments on commit 5c55f04

Please sign in to comment.