diff options
author | Sam Ravnborg <sam@ravnborg.org> | 2011-01-28 17:08:22 -0500 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2011-03-16 21:19:10 -0400 |
commit | a625a12a763fa5cfe9775aa354790782d89efb6f (patch) | |
tree | 4a8d05fe60f8a0aa46fd98c57acf851951ceb0d7 /arch/sparc | |
parent | e54f8548ff5285f57125c08d8092eec38dd05e0d (diff) |
sparc32,sun4d: drop unused code in sun4d_distribute_irqs()
The preprocessor symbol was not defined and the code
was therefore not in use.
Signed-off-by: Sam Ravnborg <sam@ravnborg.org>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'arch/sparc')
-rw-r--r-- | arch/sparc/kernel/sun4d_irq.c | 47 |
1 files changed, 0 insertions, 47 deletions
diff --git a/arch/sparc/kernel/sun4d_irq.c b/arch/sparc/kernel/sun4d_irq.c index 5fc4c220158c..b2e3fbf7c6fa 100644 --- a/arch/sparc/kernel/sun4d_irq.c +++ b/arch/sparc/kernel/sun4d_irq.c | |||
@@ -38,13 +38,6 @@ | |||
38 | * have interrupts pending for that SBUS interrupt level. | 38 | * have interrupts pending for that SBUS interrupt level. |
39 | */ | 39 | */ |
40 | 40 | ||
41 | /* | ||
42 | * If you trust current SCSI layer to handle different | ||
43 | * SCSI IRQs, enable this. | ||
44 | * I don't trust it... -jj | ||
45 | */ | ||
46 | /* #define DISTRIBUTE_IRQS */ | ||
47 | |||
48 | struct sun4d_timer_regs { | 41 | struct sun4d_timer_regs { |
49 | u32 l10_timer_limit; | 42 | u32 l10_timer_limit; |
50 | u32 l10_cur_countx; | 43 | u32 l10_cur_countx; |
@@ -412,45 +405,6 @@ void __init sun4d_distribute_irqs(void) | |||
412 | { | 405 | { |
413 | struct device_node *dp; | 406 | struct device_node *dp; |
414 | 407 | ||
415 | #ifdef DISTRIBUTE_IRQS | ||
416 | cpumask_t sbus_serving_map; | ||
417 | |||
418 | sbus_serving_map = cpu_present_map; | ||
419 | for_each_node_by_name(dp, "sbi") { | ||
420 | int board = of_getintprop_default(dp, "board#", 0); | ||
421 | |||
422 | if ((board * 2) == boot_cpu_id && cpu_isset(board * 2 + 1, cpu_present_map)) | ||
423 | sbus_tid[board] = (board * 2 + 1); | ||
424 | else if (cpu_isset(board * 2, cpu_present_map)) | ||
425 | sbus_tid[board] = (board * 2); | ||
426 | else if (cpu_isset(board * 2 + 1, cpu_present_map)) | ||
427 | sbus_tid[board] = (board * 2 + 1); | ||
428 | else | ||
429 | sbus_tid[board] = 0xff; | ||
430 | if (sbus_tid[board] != 0xff) | ||
431 | cpu_clear(sbus_tid[board], sbus_serving_map); | ||
432 | } | ||
433 | for_each_node_by_name(dp, "sbi") { | ||
434 | int board = of_getintprop_default(dp, "board#", 0); | ||
435 | if (sbus_tid[board] == 0xff) { | ||
436 | int i = 31; | ||
437 | |||
438 | if (cpus_empty(sbus_serving_map)) | ||
439 | sbus_serving_map = cpu_present_map; | ||
440 | while (cpu_isset(i, sbus_serving_map)) | ||
441 | i--; | ||
442 | sbus_tid[board] = i; | ||
443 | cpu_clear(i, sbus_serving_map); | ||
444 | } | ||
445 | } | ||
446 | for_each_node_by_name(dp, "sbi") { | ||
447 | int devid = of_getintprop_default(dp, "device-id", 0); | ||
448 | int board = of_getintprop_default(dp, "board#", 0); | ||
449 | printk(KERN_ERR "sbus%d IRQs directed to CPU%d\n", | ||
450 | board, sbus_tid[board]); | ||
451 | set_sbi_tid(devid, sbus_tid[board] << 3); | ||
452 | } | ||
453 | #else | ||
454 | int cpuid = cpu_logical_map(1); | 408 | int cpuid = cpu_logical_map(1); |
455 | 409 | ||
456 | if (cpuid == -1) | 410 | if (cpuid == -1) |
@@ -462,7 +416,6 @@ void __init sun4d_distribute_irqs(void) | |||
462 | set_sbi_tid(devid, cpuid << 3); | 416 | set_sbi_tid(devid, cpuid << 3); |
463 | } | 417 | } |
464 | printk(KERN_ERR "All sbus IRQs directed to CPU%d\n", cpuid); | 418 | printk(KERN_ERR "All sbus IRQs directed to CPU%d\n", cpuid); |
465 | #endif | ||
466 | } | 419 | } |
467 | #endif | 420 | #endif |
468 | 421 | ||