diff options
| -rw-r--r-- | arch/powerpc/kernel/rtasd.c | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/arch/powerpc/kernel/rtasd.c b/arch/powerpc/kernel/rtasd.c index e907ca66f75a..638883e23e3a 100644 --- a/arch/powerpc/kernel/rtasd.c +++ b/arch/powerpc/kernel/rtasd.c | |||
| @@ -490,6 +490,12 @@ static int __init rtas_init(void) | |||
| 490 | return -ENODEV; | 490 | return -ENODEV; |
| 491 | } | 491 | } |
| 492 | 492 | ||
| 493 | if (!rtas_event_scan_rate) { | ||
| 494 | /* Broken firmware: take a rate of zero to mean don't scan */ | ||
| 495 | printk(KERN_DEBUG "rtasd: scan rate is 0, not scanning\n"); | ||
| 496 | return 0; | ||
| 497 | } | ||
| 498 | |||
| 493 | /* Make room for the sequence number */ | 499 | /* Make room for the sequence number */ |
| 494 | rtas_error_log_max = rtas_get_error_log_max(); | 500 | rtas_error_log_max = rtas_get_error_log_max(); |
| 495 | rtas_error_log_buffer_max = rtas_error_log_max + sizeof(int); | 501 | rtas_error_log_buffer_max = rtas_error_log_max + sizeof(int); |
