diff options
author | Anton Blanchard <anton@samba.org> | 2012-03-21 15:53:43 +0000 |
---|---|---|
committer | Benjamin Herrenschmidt <benh@kernel.crashing.org> | 2012-03-28 11:31:59 +1100 |
commit | 587f83e8dd50d22bc0c62e32ec49fd319b0912fe (patch) | |
tree | 991fb39cc33b12f16b7a269852b7e3915f848a14 | |
parent | 55fc0c561742c710857dc5a7a591b461a561cf1f (diff) | |
download | kernel_goldelico_gta04-587f83e8dd50d22bc0c62e32ec49fd319b0912fe.zip kernel_goldelico_gta04-587f83e8dd50d22bc0c62e32ec49fd319b0912fe.tar.gz kernel_goldelico_gta04-587f83e8dd50d22bc0c62e32ec49fd319b0912fe.tar.bz2 |
powerpc/pseries: Use rtas_get_sensor in RAS code
We have rtas_get_sensor so we may as well use it.
Signed-off-by: Anton Blanchard <anton@samba.org>
Signed-off-by: Benjamin Herrenschmidt <benh@kernel.crashing.org>
-rw-r--r-- | arch/powerpc/platforms/pseries/ras.c | 5 |
1 files changed, 1 insertions, 4 deletions
diff --git a/arch/powerpc/platforms/pseries/ras.c b/arch/powerpc/platforms/pseries/ras.c index 4246d7b..670b45b 100644 --- a/arch/powerpc/platforms/pseries/ras.c +++ b/arch/powerpc/platforms/pseries/ras.c @@ -59,7 +59,6 @@ static DEFINE_SPINLOCK(ras_log_buf_lock); static char global_mce_data_buf[RTAS_ERROR_LOG_MAX]; static DEFINE_PER_CPU(__u64, mce_data_buf); -static int ras_get_sensor_state_token; static int ras_check_exception_token; #define EPOW_SENSOR_TOKEN 9 @@ -77,7 +76,6 @@ static int __init init_ras_IRQ(void) { struct device_node *np; - ras_get_sensor_state_token = rtas_token("get-sensor-state"); ras_check_exception_token = rtas_token("check-exception"); /* Internal Errors */ @@ -213,8 +211,7 @@ static irqreturn_t ras_epow_interrupt(int irq, void *dev_id) int state; int critical; - status = rtas_call(ras_get_sensor_state_token, 2, 2, &state, - EPOW_SENSOR_TOKEN, EPOW_SENSOR_INDEX); + status = rtas_get_sensor(EPOW_SENSOR_TOKEN, EPOW_SENSOR_INDEX, &state); if (state > 3) critical = 1; /* Time Critical */ |