Commit 5ff874a2 authored by Tony Luck's avatar Tony Luck

[IA64] When we exhaust the supply of records to read, clear the event status.

Patch written by Ben Woodard.  Sanity checked by Jesse Barnes.
Signed-off-by: default avatarTony Luck <tony.luck@intel.com>
parent 25e01e8c
...@@ -417,7 +417,12 @@ salinfo_log_new_read(int cpu, struct salinfo_data *data) ...@@ -417,7 +417,12 @@ salinfo_log_new_read(int cpu, struct salinfo_data *data)
if (!data->saved_num) if (!data->saved_num)
call_on_cpu(cpu, salinfo_log_read_cpu, data); call_on_cpu(cpu, salinfo_log_read_cpu, data);
data->state = data->log_size ? STATE_LOG_RECORD : STATE_NO_DATA; if (!data->log_size) {
data->state = STATE_NO_DATA;
clear_bit(cpu, &data->cpu_event);
} else {
data->state = STATE_LOG_RECORD;
}
} }
static ssize_t static ssize_t
......
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