patch-2.4.22 linux-2.4.22/arch/ppc64/kernel/perfmon.c
Next file: linux-2.4.22/arch/ppc64/kernel/pmc.c
Previous file: linux-2.4.22/arch/ppc64/kernel/pci_dma.c
Back to the patch index
Back to the overall index
- Lines: 26
- Date:
2003-08-25 04:44:40.000000000 -0700
- Orig file:
linux-2.4.21/arch/ppc64/kernel/perfmon.c
- Orig date:
2003-06-13 07:51:32.000000000 -0700
diff -urN linux-2.4.21/arch/ppc64/kernel/perfmon.c linux-2.4.22/arch/ppc64/kernel/perfmon.c
@@ -22,6 +22,7 @@
#include <asm/perfmon.h>
#include <asm/iSeries/HvCall.h>
#include <asm/hvcall.h>
+#include <asm/cputable.h>
extern char _stext[], _etext[], _end[];
struct perfmon_base_struct perfmon_base = {0, 0, 0, 0, 0, 0, 0, PMC_STATE_INITIAL};
@@ -450,7 +451,7 @@
}
perfmon_base.state = PMC_STATE_PROFILE_KERN;
- if (__is_processor(PV_POWER4) || __is_processor(PV_POWER4p)) {
+ if (cur_cpu_spec->cpu_features & CPU_FTR_SLB) {
for(i = 0; i < 8; i++)
pdata->pmc[i] = 0x0;
pdata->pmc[1] = 0x7f000000;
@@ -794,7 +795,7 @@
* Flood enabled is required on GP for PMC cycle profile mode
* iSeries SP sets this by default. pSeries requires the OS to enable.
*/
- if (__is_processor(PV_POWER4) || __is_processor(PV_POWER4p)) {
+ if (cur_cpu_spec->cpu_features & CPU_FTR_SLB) {
/* Set up the debug bus to pmc mode - a feature of GP */
switch(systemcfg->platform) {
case PLATFORM_ISERIES_LPAR:
FUNET's LINUX-ADM group, linux-adm@nic.funet.fi
TCL-scripts by Sam Shen (who was at: slshen@lbl.gov)