[PATCH] ppc64: Export re{serv,leas}e_pmc_hardware() for oprofile

From: Paul Mackerras
Date: Fri Apr 01 2005 - 07:37:11 EST


CONFIG_OPROFILE=m doesn't work on ppc64 if these aren't exported...

Signed-off-by: David Woodhouse <dwmw2@xxxxxxxxxxxxx>
Signed-off-by: Paul Mackerras <paulus@xxxxxxxxx>

--- linux-2.6.11/arch/ppc64/kernel/pmc.c.orig 2005-03-31 20:31:07.000000000 +0100
+++ linux-2.6.11/arch/ppc64/kernel/pmc.c 2005-03-31 20:30:15.000000000 +0100
@@ -12,6 +12,7 @@
#include <linux/config.h>
#include <linux/errno.h>
#include <linux/spinlock.h>
+#include <linux/module.h>

#include <asm/processor.h>
#include <asm/pmc.h>
@@ -50,6 +51,7 @@ int reserve_pmc_hardware(perf_irq_t new_
spin_unlock(&pmc_owner_lock);
return err;
}
+EXPORT_SYMBOL_GPL(reserve_pmc_hardware);

void release_pmc_hardware(void)
{
@@ -62,3 +64,4 @@ void release_pmc_hardware(void)

spin_unlock(&pmc_owner_lock);
}
+EXPORT_SYMBOL_GPL(release_pmc_hardware);
-
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/