Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 10418
b: refs/heads/master
c: c6b9daf
h: refs/heads/master
v: v3
  • Loading branch information
Russell King authored and Russell King committed Oct 28, 2005
1 parent c42dd35 commit 69b33a8
Show file tree
Hide file tree
Showing 4 changed files with 30 additions and 53 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: 55f052341ff75e5815b1f7f4d2d3b69314ea8712
refs/heads/master: c6b9dafce3e3b434a3e7ffd5072815c03d18cc84
4 changes: 2 additions & 2 deletions trunk/arch/arm/oprofile/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,6 @@ DRIVER_OBJS = $(addprefix ../../../drivers/oprofile/, \
oprofilefs.o oprofile_stats.o \
timer_int.o )

oprofile-y := $(DRIVER_OBJS) init.o backtrace.o
oprofile-$(CONFIG_CPU_XSCALE) += common.o op_model_xscale.o
oprofile-y := $(DRIVER_OBJS) common.o backtrace.o
oprofile-$(CONFIG_CPU_XSCALE) += op_model_xscale.o

44 changes: 27 additions & 17 deletions trunk/arch/arm/oprofile/common.c
Original file line number Diff line number Diff line change
Expand Up @@ -125,27 +125,37 @@ static void exit_driverfs(void)
#define exit_driverfs() do { } while (0)
#endif /* CONFIG_PM */

int __init op_arm_init(struct oprofile_operations *ops, struct op_arm_model_spec *spec)
int __init oprofile_arch_init(struct oprofile_operations *ops)
{
init_MUTEX(&op_arm_sem);

if (spec->init() < 0)
return -ENODEV;

op_arm_model = spec;
init_driverfs();
ops->create_files = op_arm_create_files;
ops->setup = op_arm_setup;
ops->shutdown = op_arm_stop;
ops->start = op_arm_start;
ops->stop = op_arm_stop;
ops->cpu_type = op_arm_model->name;
printk(KERN_INFO "oprofile: using %s\n", spec->name);
struct op_arm_model_spec *spec = NULL;
int ret = -ENODEV;

#ifdef CONFIG_CPU_XSCALE
spec = &op_xscale_spec;
#endif

if (spec) {
init_MUTEX(&op_arm_sem);

if (spec->init() < 0)
return -ENODEV;

op_arm_model = spec;
init_driverfs();
ops->create_files = op_arm_create_files;
ops->setup = op_arm_setup;
ops->shutdown = op_arm_stop;
ops->start = op_arm_start;
ops->stop = op_arm_stop;
ops->cpu_type = op_arm_model->name;
ops->backtrace = arm_backtrace;
printk(KERN_INFO "oprofile: using %s\n", spec->name);
}

return 0;
return ret;
}

void op_arm_exit(void)
void oprofile_arch_exit(void)
{
if (op_arm_model) {
exit_driverfs();
Expand Down
33 changes: 0 additions & 33 deletions trunk/arch/arm/oprofile/init.c

This file was deleted.

0 comments on commit 69b33a8

Please sign in to comment.