Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 207283
b: refs/heads/master
c: 979f867
h: refs/heads/master
i:
  207281: 5b29ef5
  207279: 5339eaa
v: v3
  • Loading branch information
Michael Cree authored and Linus Torvalds committed Aug 10, 2010
1 parent 2b32c86 commit e9e2904
Show file tree
Hide file tree
Showing 6 changed files with 880 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: 92484f10ca8f7d36f0bfad92b66a20aa03120cc0
refs/heads/master: 979f867191f80e74713394cf8c0a3c1b3662b648
8 changes: 7 additions & 1 deletion trunk/arch/alpha/include/asm/perf_event.h
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,14 @@
#define __ASM_ALPHA_PERF_EVENT_H

/* Alpha only supports software events through this interface. */
static inline void set_perf_event_pending(void) { }
extern void set_perf_event_pending(void);

#define PERF_EVENT_INDEX_OFFSET 0

#ifdef CONFIG_PERF_EVENTS
extern void init_hw_perf_events(void);
#else
static inline void init_hw_perf_events(void) { }
#endif

#endif /* __ASM_ALPHA_PERF_EVENT_H */
1 change: 1 addition & 0 deletions trunk/arch/alpha/kernel/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,7 @@ obj-$(CONFIG_SMP) += smp.o
obj-$(CONFIG_PCI) += pci.o pci_iommu.o pci-sysfs.o
obj-$(CONFIG_SRM_ENV) += srm_env.o
obj-$(CONFIG_MODULES) += module.o
obj-$(CONFIG_PERF_EVENTS) += perf_event.o

ifdef CONFIG_ALPHA_GENERIC

Expand Down
3 changes: 3 additions & 0 deletions trunk/arch/alpha/kernel/irq_alpha.c
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@

#include <asm/machvec.h>
#include <asm/dma.h>
#include <asm/perf_event.h>

#include "proto.h"
#include "irq_impl.h"
Expand Down Expand Up @@ -111,6 +112,8 @@ init_IRQ(void)
wrent(entInt, 0);

alpha_mv.init_irq();

init_hw_perf_events();
}

/*
Expand Down
Loading

0 comments on commit e9e2904

Please sign in to comment.