Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 114554
b: refs/heads/master
c: 33a7f12
h: refs/heads/master
v: v3
  • Loading branch information
Kumar Gala committed Sep 18, 2008
1 parent 03faebb commit d7472e6
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 3 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: c2fe59444e1827ecd2713a1e6ecfd1ab1fc548ae
refs/heads/master: 33a7f122740bd820a029faf450a9a0caa9458426
6 changes: 4 additions & 2 deletions trunk/arch/powerpc/kernel/sysfs.c
Original file line number Diff line number Diff line change
Expand Up @@ -134,6 +134,7 @@ void ppc_enable_pmcs(void)
}
EXPORT_SYMBOL(ppc_enable_pmcs);

#if defined(CONFIG_6xx) || defined(CONFIG_PPC64)
/* XXX convert to rusty's on_one_cpu */
static unsigned long run_on_cpu(unsigned long cpu,
unsigned long (*func)(unsigned long),
Expand All @@ -152,6 +153,7 @@ static unsigned long run_on_cpu(unsigned long cpu,

return ret;
}
#endif

#define SYSFS_PMCSETUP(NAME, ADDRESS) \
static unsigned long read_##NAME(unsigned long junk) \
Expand Down Expand Up @@ -190,11 +192,11 @@ static ssize_t __used \
* that are implemented on the current processor
*/

#ifdef CONFIG_PPC64
#if defined(CONFIG_PPC64)
#define HAS_PPC_PMC_CLASSIC 1
#define HAS_PPC_PMC_IBM 1
#define HAS_PPC_PMC_PA6T 1
#elif CONFIG_6xx
#elif defined(CONFIG_6xx)
#define HAS_PPC_PMC_CLASSIC 1
#define HAS_PPC_PMC_IBM 1
#define HAS_PPC_PMC_G4 1
Expand Down

0 comments on commit d7472e6

Please sign in to comment.