| .. | .. |
|---|
| 1 | +// SPDX-License-Identifier: GPL-2.0-or-later |
|---|
| 1 | 2 | |
|---|
| 2 | 3 | /* |
|---|
| 3 | 4 | * IBM ASM Service Processor Device Driver |
|---|
| 4 | 5 | * |
|---|
| 5 | | - * This program is free software; you can redistribute it and/or modify |
|---|
| 6 | | - * it under the terms of the GNU General Public License as published by |
|---|
| 7 | | - * the Free Software Foundation; either version 2 of the License, or |
|---|
| 8 | | - * (at your option) any later version. |
|---|
| 9 | | - * |
|---|
| 10 | | - * This program is distributed in the hope that it will be useful, |
|---|
| 11 | | - * but WITHOUT ANY WARRANTY; without even the implied warranty of |
|---|
| 12 | | - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
|---|
| 13 | | - * GNU General Public License for more details. |
|---|
| 14 | | - * |
|---|
| 15 | | - * You should have received a copy of the GNU General Public License |
|---|
| 16 | | - * along with this program; if not, write to the Free Software |
|---|
| 17 | | - * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. |
|---|
| 18 | | - * |
|---|
| 19 | 6 | * Copyright (C) IBM Corporation, 2004 |
|---|
| 20 | 7 | * |
|---|
| 21 | 8 | * Author: Max Asböck <amax@us.ibm.com> |
|---|
| 22 | | - * |
|---|
| 23 | 9 | */ |
|---|
| 24 | 10 | |
|---|
| 25 | 11 | #include <linux/sched.h> |
|---|
| .. | .. |
|---|
| 45 | 31 | wake_up_interruptible(&reader->wait); |
|---|
| 46 | 32 | } |
|---|
| 47 | 33 | |
|---|
| 48 | | -/** |
|---|
| 34 | +/* |
|---|
| 49 | 35 | * receive_event |
|---|
| 50 | 36 | * Called by the interrupt handler when a dot command of type sp_event is |
|---|
| 51 | 37 | * received. |
|---|
| .. | .. |
|---|
| 82 | 68 | return (r->next_serial_number < b->next_serial_number); |
|---|
| 83 | 69 | } |
|---|
| 84 | 70 | |
|---|
| 85 | | -/** |
|---|
| 71 | +/* |
|---|
| 86 | 72 | * get_next_event |
|---|
| 87 | 73 | * Called by event readers (initiated from user space through the file |
|---|
| 88 | 74 | * system). |
|---|