rtasd.c (8e8c668927b029f6ccc350eb1aa936864cc4eb6f) | rtasd.c (6e45273eacc829a44fae1d3df14065d6947335ae) |
---|---|
1/* 2 * Copyright (C) 2001 Anton Blanchard <anton@au.ibm.com>, IBM 3 * 4 * This program is free software; you can redistribute it and/or 5 * modify it under the terms of the GNU General Public License 6 * as published by the Free Software Foundation; either version 7 * 2 of the License, or (at your option) any later version. 8 * --- 469 unchanged lines hidden (view full) --- 478 479 schedule_delayed_work_on(cpu, &event_scan_work, 480 __round_jiffies_relative(event_scan_delay, cpu)); 481 482 put_online_cpus(); 483} 484 485#ifdef CONFIG_PPC64 | 1/* 2 * Copyright (C) 2001 Anton Blanchard <anton@au.ibm.com>, IBM 3 * 4 * This program is free software; you can redistribute it and/or 5 * modify it under the terms of the GNU General Public License 6 * as published by the Free Software Foundation; either version 7 * 2 of the License, or (at your option) any later version. 8 * --- 469 unchanged lines hidden (view full) --- 478 479 schedule_delayed_work_on(cpu, &event_scan_work, 480 __round_jiffies_relative(event_scan_delay, cpu)); 481 482 put_online_cpus(); 483} 484 485#ifdef CONFIG_PPC64 |
486static void retreive_nvram_error_log(void) | 486static void retrieve_nvram_error_log(void) |
487{ 488 unsigned int err_type ; 489 int rc ; 490 491 /* See if we have any error stored in NVRAM */ 492 memset(logdata, 0, rtas_error_log_max); 493 rc = nvram_read_error_log(logdata, rtas_error_log_max, 494 &err_type, &error_log_cnt); 495 /* We can use rtas_log_buf now */ 496 logging_enabled = 1; 497 if (!rc) { 498 if (err_type != ERR_FLAG_ALREADY_LOGGED) { 499 pSeries_log_error(logdata, err_type | ERR_FLAG_BOOT, 0); 500 } 501 } 502} 503#else /* CONFIG_PPC64 */ | 487{ 488 unsigned int err_type ; 489 int rc ; 490 491 /* See if we have any error stored in NVRAM */ 492 memset(logdata, 0, rtas_error_log_max); 493 rc = nvram_read_error_log(logdata, rtas_error_log_max, 494 &err_type, &error_log_cnt); 495 /* We can use rtas_log_buf now */ 496 logging_enabled = 1; 497 if (!rc) { 498 if (err_type != ERR_FLAG_ALREADY_LOGGED) { 499 pSeries_log_error(logdata, err_type | ERR_FLAG_BOOT, 0); 500 } 501 } 502} 503#else /* CONFIG_PPC64 */ |
504static void retreive_nvram_error_log(void) | 504static void retrieve_nvram_error_log(void) |
505{ 506} 507#endif /* CONFIG_PPC64 */ 508 509static void start_event_scan(void) 510{ 511 printk(KERN_DEBUG "RTAS daemon started\n"); 512 pr_debug("rtasd: will sleep for %d milliseconds\n", 513 (30000 / rtas_event_scan_rate)); 514 515 /* Retrieve errors from nvram if any */ | 505{ 506} 507#endif /* CONFIG_PPC64 */ 508 509static void start_event_scan(void) 510{ 511 printk(KERN_DEBUG "RTAS daemon started\n"); 512 pr_debug("rtasd: will sleep for %d milliseconds\n", 513 (30000 / rtas_event_scan_rate)); 514 515 /* Retrieve errors from nvram if any */ |
516 retreive_nvram_error_log(); | 516 retrieve_nvram_error_log(); |
517 518 schedule_delayed_work_on(cpumask_first(cpu_online_mask), 519 &event_scan_work, event_scan_delay); 520} 521 522/* Cancel the rtas event scan work */ 523void rtas_cancel_event_scan(void) 524{ --- 73 unchanged lines hidden --- | 517 518 schedule_delayed_work_on(cpumask_first(cpu_online_mask), 519 &event_scan_work, event_scan_delay); 520} 521 522/* Cancel the rtas event scan work */ 523void rtas_cancel_event_scan(void) 524{ --- 73 unchanged lines hidden --- |