aboutsummaryrefslogtreecommitdiffstats
path: root/arch
diff options
context:
space:
mode:
Diffstat (limited to 'arch')
-rw-r--r--arch/ppc64/kernel/ItLpQueue.c22
-rw-r--r--arch/ppc64/kernel/iSeries_setup.c20
2 files changed, 21 insertions, 21 deletions
diff --git a/arch/ppc64/kernel/ItLpQueue.c b/arch/ppc64/kernel/ItLpQueue.c
index d37793467808..61be23ed5004 100644
--- a/arch/ppc64/kernel/ItLpQueue.c
+++ b/arch/ppc64/kernel/ItLpQueue.c
@@ -69,7 +69,7 @@ struct HvLpEvent * ItLpQueue_getNextLpEvent( struct ItLpQueue * lpQueue )
69 return nextLpEvent; 69 return nextLpEvent;
70} 70}
71 71
72unsigned long spread_lpevents = NR_CPUS; 72static unsigned long spread_lpevents = NR_CPUS;
73 73
74int ItLpQueue_isLpIntPending( struct ItLpQueue * lpQueue ) 74int ItLpQueue_isLpIntPending( struct ItLpQueue * lpQueue )
75{ 75{
@@ -166,3 +166,23 @@ unsigned ItLpQueue_process( struct ItLpQueue * lpQueue, struct pt_regs *regs )
166 166
167 return numIntsProcessed; 167 return numIntsProcessed;
168} 168}
169
170static int set_spread_lpevents(char *str)
171{
172 unsigned long val = simple_strtoul(str, NULL, 0);
173
174 /*
175 * The parameter is the number of processors to share in processing
176 * lp events.
177 */
178 if (( val > 0) && (val <= NR_CPUS)) {
179 spread_lpevents = val;
180 printk("lpevent processing spread over %ld processors\n", val);
181 } else {
182 printk("invalid spread_lpevents %ld\n", val);
183 }
184
185 return 1;
186}
187__setup("spread_lpevents=", set_spread_lpevents);
188
diff --git a/arch/ppc64/kernel/iSeries_setup.c b/arch/ppc64/kernel/iSeries_setup.c
index 2049b6dbafc7..78f283560252 100644
--- a/arch/ppc64/kernel/iSeries_setup.c
+++ b/arch/ppc64/kernel/iSeries_setup.c
@@ -853,26 +853,6 @@ static int __init iSeries_src_init(void)
853 853
854late_initcall(iSeries_src_init); 854late_initcall(iSeries_src_init);
855 855
856static int set_spread_lpevents(char *str)
857{
858 unsigned long val = simple_strtoul(str, NULL, 0);
859 extern unsigned long spread_lpevents;
860
861 /*
862 * The parameter is the number of processors to share in processing
863 * lp events.
864 */
865 if (( val > 0) && (val <= NR_CPUS)) {
866 spread_lpevents = val;
867 printk("lpevent processing spread over %ld processors\n", val);
868 } else {
869 printk("invalid spread_lpevents %ld\n", val);
870 }
871
872 return 1;
873}
874__setup("spread_lpevents=", set_spread_lpevents);
875
876#ifndef CONFIG_PCI 856#ifndef CONFIG_PCI
877void __init iSeries_init_IRQ(void) { } 857void __init iSeries_init_IRQ(void) { }
878#endif 858#endif