-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
yaml --- r: 48879 b: refs/heads/master c: 2d9e1ae h: refs/heads/master i: 48877: 610ef9d 48875: d7a44ad 48871: ae09df1 48863: fb0d73a v: v3
- Loading branch information
Russell King
authored and
Russell King
committed
Feb 6, 2007
1 parent
dca66e4
commit 2ef361e
Showing
6 changed files
with
85 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,2 +1,2 @@ | ||
--- | ||
refs/heads/master: c265a762aa196de11f38f6f44cc817329f32a813 | ||
refs/heads/master: 2d9e1ae06d8f0bb187ea083fabab2dfb6f589270 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,67 @@ | ||
/** | ||
* @file op_model_v6.c | ||
* ARM11 Performance Monitor Driver | ||
* | ||
* Based on op_model_xscale.c | ||
* | ||
* @remark Copyright 2000-2004 Deepak Saxena <dsaxena@mvista.com> | ||
* @remark Copyright 2000-2004 MontaVista Software Inc | ||
* @remark Copyright 2004 Dave Jiang <dave.jiang@intel.com> | ||
* @remark Copyright 2004 Intel Corporation | ||
* @remark Copyright 2004 Zwane Mwaikambo <zwane@arm.linux.org.uk> | ||
* @remark Copyright 2004 OProfile Authors | ||
* | ||
* @remark Read the file COPYING | ||
* | ||
* @author Tony Lindgren <tony@atomide.com> | ||
*/ | ||
|
||
/* #define DEBUG */ | ||
#include <linux/types.h> | ||
#include <linux/errno.h> | ||
#include <linux/sched.h> | ||
#include <linux/oprofile.h> | ||
#include <linux/interrupt.h> | ||
#include <asm/irq.h> | ||
#include <asm/system.h> | ||
|
||
#include "op_counter.h" | ||
#include "op_arm_model.h" | ||
#include "op_model_arm11_core.h" | ||
|
||
static int irqs[] = { | ||
#ifdef CONFIG_ARCH_OMAP2 | ||
3, | ||
#endif | ||
}; | ||
|
||
static void armv6_pmu_stop(void) | ||
{ | ||
arm11_stop_pmu(); | ||
arm11_release_interrupts(irqs, ARRAY_SIZE(irqs)); | ||
} | ||
|
||
static int armv6_pmu_start(void) | ||
{ | ||
int ret; | ||
|
||
ret = arm11_request_interrupts(irqs, ARRAY_SIZE(irqs)); | ||
if (ret >= 0) | ||
ret = arm11_start_pmu(); | ||
|
||
return ret; | ||
} | ||
|
||
static int armv6_detect_pmu(void) | ||
{ | ||
return 0; | ||
} | ||
|
||
struct op_arm_model_spec op_armv6_spec = { | ||
.init = armv6_detect_pmu, | ||
.num_counters = 3, | ||
.setup_ctrs = arm11_setup_pmu, | ||
.start = armv6_pmu_start, | ||
.stop = armv6_pmu_stop, | ||
.name = "arm/armv6", | ||
}; |