Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 4018
b: refs/heads/master
c: 0c885c1
h: refs/heads/master
v: v3
  • Loading branch information
Michael Ellerman authored and Paul Mackerras committed Jun 30, 2005
1 parent 362753e commit abf9efe
Show file tree
Hide file tree
Showing 3 changed files with 22 additions and 22 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: fc07695386067a4abbd5ac8c7974059eae0b0a79
refs/heads/master: 0c885c175c06bdfe13e88d974d56a5e93ad2f544
22 changes: 21 additions & 1 deletion trunk/arch/ppc64/kernel/ItLpQueue.c
Original file line number Diff line number Diff line change
Expand Up @@ -69,7 +69,7 @@ struct HvLpEvent * ItLpQueue_getNextLpEvent( struct ItLpQueue * lpQueue )
return nextLpEvent;
}

unsigned long spread_lpevents = NR_CPUS;
static unsigned long spread_lpevents = NR_CPUS;

int ItLpQueue_isLpIntPending( struct ItLpQueue * lpQueue )
{
Expand Down Expand Up @@ -166,3 +166,23 @@ unsigned ItLpQueue_process( struct ItLpQueue * lpQueue, struct pt_regs *regs )

return numIntsProcessed;
}

static int set_spread_lpevents(char *str)
{
unsigned long val = simple_strtoul(str, NULL, 0);

/*
* The parameter is the number of processors to share in processing
* lp events.
*/
if (( val > 0) && (val <= NR_CPUS)) {
spread_lpevents = val;
printk("lpevent processing spread over %ld processors\n", val);
} else {
printk("invalid spread_lpevents %ld\n", val);
}

return 1;
}
__setup("spread_lpevents=", set_spread_lpevents);

20 changes: 0 additions & 20 deletions trunk/arch/ppc64/kernel/iSeries_setup.c
Original file line number Diff line number Diff line change
Expand Up @@ -853,26 +853,6 @@ static int __init iSeries_src_init(void)

late_initcall(iSeries_src_init);

static int set_spread_lpevents(char *str)
{
unsigned long val = simple_strtoul(str, NULL, 0);
extern unsigned long spread_lpevents;

/*
* The parameter is the number of processors to share in processing
* lp events.
*/
if (( val > 0) && (val <= NR_CPUS)) {
spread_lpevents = val;
printk("lpevent processing spread over %ld processors\n", val);
} else {
printk("invalid spread_lpevents %ld\n", val);
}

return 1;
}
__setup("spread_lpevents=", set_spread_lpevents);

#ifndef CONFIG_PCI
void __init iSeries_init_IRQ(void) { }
#endif
Expand Down

0 comments on commit abf9efe

Please sign in to comment.