Orange Pi5 kernel

Deprecated Linux kernel 5.10.110 for OrangePi 5/5B/5+ boards

3 Commits   0 Branches   0 Tags   |
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  1) /* SPDX-License-Identifier: GPL-2.0 */
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  2) /*
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  3)  *  Copyright IBM Corp. 2014
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  4)  *
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  5)  *  Author: Martin Schwidefsky <schwidefsky@de.ibm.com>
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  6)  */
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  7) 
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  8) #ifndef _S390_IDLE_H
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  9) #define _S390_IDLE_H
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 10) 
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 11) #include <linux/types.h>
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 12) #include <linux/device.h>
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 13) #include <linux/seqlock.h>
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 14) 
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 15) struct s390_idle_data {
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 16) 	seqcount_t seqcount;
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 17) 	unsigned long long idle_count;
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 18) 	unsigned long long idle_time;
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 19) 	unsigned long long clock_idle_enter;
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 20) 	unsigned long long clock_idle_exit;
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 21) 	unsigned long long timer_idle_enter;
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 22) 	unsigned long long timer_idle_exit;
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 23) };
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 24) 
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 25) extern struct device_attribute dev_attr_idle_count;
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 26) extern struct device_attribute dev_attr_idle_time_us;
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 27) 
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 28) void psw_idle(struct s390_idle_data *, unsigned long);
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 29) 
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 30) #endif /* _S390_IDLE_H */