Commit 51bdd711 authored by Andrew Morton's avatar Andrew Morton Committed by Linus Torvalds

[PATCH] ppc64: rename the rtas event classes to avoid namespace collisions, from John Rose

From: Anton Blanchard <anton@samba.org>

rename the rtas event classes to avoid namespace collisions, from John Rose
parent 7477a4dd
......@@ -114,7 +114,7 @@ ras_epow_interrupt(int irq, void *dev_id, struct pt_regs * regs)
status = rtas_call(rtas_token("check-exception"), 6, 1, NULL,
0x500, irq,
EPOW_WARNING | POWERMGM_EVENTS,
RTAS_EPOW_WARNING | RTAS_POWERMGM_EVENTS,
1, /* Time Critical */
__pa(&log_entry), size);
......@@ -142,7 +142,7 @@ ras_error_interrupt(int irq, void *dev_id, struct pt_regs * regs)
status = rtas_call(rtas_token("check-exception"), 6, 1, NULL,
0x500, irq,
INTERNAL_ERROR,
RTAS_INTERNAL_ERROR,
1, /* Time Critical */
__pa(&log_entry), size);
......
......@@ -44,7 +44,6 @@ static int surveillance_requested;
static unsigned int rtas_event_scan_rate;
static unsigned int rtas_error_log_max;
#define EVENT_SCAN_ALL_EVENTS 0xf0000000
#define SURVEILLANCE_TOKEN 9000
#define SURVEILLANCE_TIMEOUT 1
#define SURVEILLANCE_SCANRATE 1
......@@ -234,7 +233,7 @@ static int rtasd(void *unused)
do {
memset(logdata, 0, rtas_error_log_max);
error = rtas_call(event_scan, 4, 1, NULL,
EVENT_SCAN_ALL_EVENTS, 0,
RTAS_EVENT_SCAN_ALL_EVENTS, 0,
__pa(logdata), rtas_error_log_max);
if (error == -1) {
printk(KERN_ERR "event-scan failed\n");
......
......@@ -57,11 +57,11 @@ struct rtas_t {
};
/* Event classes */
#define INTERNAL_ERROR 0x80000000 /* set bit 0 */
#define EPOW_WARNING 0x40000000 /* set bit 1 */
#define POWERMGM_EVENTS 0x20000000 /* set bit 2 */
#define HOTPLUG_EVENTS 0x10000000 /* set bit 3 */
#define EVENT_SCAN_ALL_EVENTS 0xf0000000
#define RTAS_INTERNAL_ERROR 0x80000000 /* set bit 0 */
#define RTAS_EPOW_WARNING 0x40000000 /* set bit 1 */
#define RTAS_POWERMGM_EVENTS 0x20000000 /* set bit 2 */
#define RTAS_HOTPLUG_EVENTS 0x10000000 /* set bit 3 */
#define RTAS_EVENT_SCAN_ALL_EVENTS 0xf0000000
/* event-scan returns */
#define SEVERITY_FATAL 0x5
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment