[PATCH][2.6.7-mm5] perfctr ppc32 buglet fix

From: Mikael Pettersson
Date: Fri Jul 02 2004 - 14:19:39 EST


Andrew,

This patch fixes a minor buglet in perfctr's ppc32 driver,
which prevented 7400/7410-type processors from specifying
a non-zero value for the MMCR2[THRESHMULT] control field.

Signed-off-by: Mikael Pettersson <mikpe@xxxxxxxxx>

--- linux-2.6.7-mm5/drivers/perfctr/ppc.c.~1~ 2004-07-01 18:54:13.000000000 +0200
+++ linux-2.6.7-mm5/drivers/perfctr/ppc.c 2004-07-02 20:53:10.000000000 +0200
@@ -310,6 +310,7 @@

switch (pm_type) {
case PM_7450:
+ case PM_7400:
if (state->control.ppc.mmcr2 & MMCR2_RESERVED)
return -EINVAL;
state->ppc_mmcr[2] = state->control.ppc.mmcr2;
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/