Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 297181
b: refs/heads/master
c: 587f83e
h: refs/heads/master
i:
  297179: df0ef3b
v: v3
  • Loading branch information
Anton Blanchard authored and Benjamin Herrenschmidt committed Mar 28, 2012
1 parent b77b422 commit 35e35e1
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 5 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: 55fc0c561742c710857dc5a7a591b461a561cf1f
refs/heads/master: 587f83e8dd50d22bc0c62e32ec49fd319b0912fe
5 changes: 1 addition & 4 deletions trunk/arch/powerpc/platforms/pseries/ras.c
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -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 */
Expand Down Expand Up @@ -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 */
Expand Down

0 comments on commit 35e35e1

Please sign in to comment.