]> err.no Git - linux-2.6/commitdiff
[POWERPC] RTAS delay, fix module build breaks
authorJohn Rose <johnrose@austin.ibm.com>
Thu, 15 Jun 2006 22:32:15 +0000 (17:32 -0500)
committerPaul Mackerras <paulus@samba.org>
Wed, 21 Jun 2006 05:01:27 +0000 (15:01 +1000)
Export both news RTAS delay functions, and change the scanlog module to
use the new delay functions.

Signed-off-by: John Rose <johnrose@austin.ibm.com>
Signed-off-by: Paul Mackerras <paulus@samba.org>
arch/powerpc/kernel/rtas.c
arch/powerpc/platforms/pseries/scanlog.c

index fd15e3e3bb33932e0c82f1d48b9cfbacd7aa3d1f..17dc79198515d8f61f0879b10e9535dbbe5be9ab 100644 (file)
@@ -797,6 +797,7 @@ EXPORT_SYMBOL(rtas_call);
 EXPORT_SYMBOL(rtas_data_buf);
 EXPORT_SYMBOL(rtas_data_buf_lock);
 EXPORT_SYMBOL(rtas_busy_delay_time);
+EXPORT_SYMBOL(rtas_busy_delay);
 EXPORT_SYMBOL(rtas_get_sensor);
 EXPORT_SYMBOL(rtas_get_power_level);
 EXPORT_SYMBOL(rtas_set_power_level);
index 50643496eb635f5febf4f8fa621fe1311bc8718d..77a5bb1d9c3085f80292673f64002a60d77e4dd4 100644 (file)
@@ -107,9 +107,9 @@ static ssize_t scanlog_read(struct file *file, char __user *buf,
                        /* Break to sleep default time */
                        break;
                    default:
-                       if (status > 9900 && status <= 9905) {
-                               wait_time = rtas_extended_busy_delay_time(status);
-                       } else {
+                       /* Assume extended busy */
+                       wait_time = rtas_busy_delay_time(status);
+                       if (!wait_time) {
                                printk(KERN_ERR "scanlog: unknown error from rtas: %d\n", status);
                                return -EIO;
                        }