diff options
Diffstat (limited to 'arch/powerpc/platforms/pseries/rtasd.c')
-rw-r--r-- | arch/powerpc/platforms/pseries/rtasd.c | 13 |
1 files changed, 2 insertions, 11 deletions
diff --git a/arch/powerpc/platforms/pseries/rtasd.c b/arch/powerpc/platforms/pseries/rtasd.c index 762fe87629ff..48e6dc0ae15a 100644 --- a/arch/powerpc/platforms/pseries/rtasd.c +++ b/arch/powerpc/platforms/pseries/rtasd.c | |||
@@ -361,26 +361,17 @@ static int enable_surveillance(int timeout) | |||
361 | 361 | ||
362 | static int get_eventscan_parms(void) | 362 | static int get_eventscan_parms(void) |
363 | { | 363 | { |
364 | struct device_node *node; | 364 | rtas_event_scan_rate = rtas_token("rtas-event-scan-rate"); |
365 | const int *ip; | 365 | if (rtas_event_scan_rate == RTAS_UNKNOWN_SERVICE) { |
366 | |||
367 | node = of_find_node_by_path("/rtas"); | ||
368 | |||
369 | ip = of_get_property(node, "rtas-event-scan-rate", NULL); | ||
370 | if (ip == NULL) { | ||
371 | printk(KERN_ERR "rtasd: no rtas-event-scan-rate\n"); | 366 | printk(KERN_ERR "rtasd: no rtas-event-scan-rate\n"); |
372 | of_node_put(node); | ||
373 | return -1; | 367 | return -1; |
374 | } | 368 | } |
375 | rtas_event_scan_rate = *ip; | ||
376 | DEBUG("rtas-event-scan-rate %d\n", rtas_event_scan_rate); | 369 | DEBUG("rtas-event-scan-rate %d\n", rtas_event_scan_rate); |
377 | 370 | ||
378 | /* Make room for the sequence number */ | 371 | /* Make room for the sequence number */ |
379 | rtas_error_log_max = rtas_get_error_log_max(); | 372 | rtas_error_log_max = rtas_get_error_log_max(); |
380 | rtas_error_log_buffer_max = rtas_error_log_max + sizeof(int); | 373 | rtas_error_log_buffer_max = rtas_error_log_max + sizeof(int); |
381 | 374 | ||
382 | of_node_put(node); | ||
383 | |||
384 | return 0; | 375 | return 0; |
385 | } | 376 | } |
386 | 377 | ||