Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 154896
b: refs/heads/master
c: 2d4618d
h: refs/heads/master
v: v3
  • Loading branch information
Kyle McMartin committed Jul 3, 2009
1 parent 3aa02e9 commit ed7b4c9
Show file tree
Hide file tree
Showing 5 changed files with 16 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: abf1e11a0dcf5514139cb76ed8eb050107653abd
refs/heads/master: 2d4618dce6a318ff4ec78dfe492cc3793015d540
1 change: 1 addition & 0 deletions trunk/arch/parisc/Kconfig
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,7 @@ config PARISC
select RTC_DRV_GENERIC
select INIT_ALL_POSSIBLE
select BUG
select HAVE_PERF_COUNTERS
help
The PA-RISC microprocessor is designed by Hewlett-Packard and used
in many of their workstations & servers (HP9000 700 and 800 series,
Expand Down
7 changes: 7 additions & 0 deletions trunk/arch/parisc/include/asm/perf_counter.h
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
#ifndef __ASM_PARISC_PERF_COUNTER_H
#define __ASM_PARISC_PERF_COUNTER_H

/* parisc only supports software counters through this interface. */
static inline void set_perf_counter_pending(void) { }

#endif /* __ASM_PARISC_PERF_COUNTER_H */
2 changes: 1 addition & 1 deletion trunk/arch/parisc/kernel/syscall_table.S
Original file line number Diff line number Diff line change
Expand Up @@ -416,7 +416,7 @@
ENTRY_COMP(preadv) /* 315 */
ENTRY_COMP(pwritev)
ENTRY_COMP(rt_tgsigqueueinfo)
ENTRY_SAME(ni_syscall)
ENTRY_SAME(perf_counter_open)

/* Nothing yet */

Expand Down
6 changes: 6 additions & 0 deletions trunk/tools/perf/perf.h
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,12 @@
#define cpu_relax() asm volatile("" ::: "memory");
#endif

#ifdef __hppa__
#include "../../arch/parisc/include/asm/unistd.h"
#define rmb() asm volatile("" ::: "memory")
#define cpu_relax() asm volatile("" ::: "memory");
#endif

#include <time.h>
#include <unistd.h>
#include <sys/types.h>
Expand Down

0 comments on commit ed7b4c9

Please sign in to comment.