Commit b8ca38f1 authored by Anton Blanchard's avatar Anton Blanchard Committed by Linus Torvalds

[PATCH] ppc64: reduce ifdef clutter in arch/ppc64/kernel/sysfs.c

From: Christoph Hellwig <hch@lst.de>

Reduce ifdef clutter in arch/ppc64/kernel/sysfs.c
Signed-off-by: default avatarAnton Blanchard <anton@samba.org>
Signed-off-by: default avatarAndrew Morton <akpm@osdl.org>
Signed-off-by: default avatarLinus Torvalds <torvalds@osdl.org>
parent 60baed36
......@@ -17,8 +17,7 @@
/* SMT stuff */
#ifndef CONFIG_PPC_ISERIES
#ifdef CONFIG_PPC_MULTIPLATFORM
/* default to snooze disabled */
DEFINE_PER_CPU(unsigned long, smt_snooze_delay);
......@@ -94,19 +93,6 @@ static int __init setup_smt_snooze_delay(char *str)
}
__setup("smt-snooze-delay=", setup_smt_snooze_delay);
#endif
/* PMC stuff */
#ifdef CONFIG_PPC_ISERIES
void ppc64_enable_pmcs(void)
{
/* XXX Implement for iseries */
}
#endif
#ifdef CONFIG_PPC_MULTIPLATFORM
/*
* Enabling PMCs will slow partition context switch times so we only do
* it the first time we write to the PMCs.
......@@ -183,6 +169,14 @@ void ppc64_enable_pmcs(void)
}
#endif /* CONFIG_PPC_PSERIES */
}
#else
/* PMC stuff */
void ppc64_enable_pmcs(void)
{
/* XXX Implement for iseries */
}
#endif /* CONFIG_PPC_MULTIPLATFORM */
EXPORT_SYMBOL(ppc64_enable_pmcs);
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment