Files
Pranaya Deomani 0d8e9f34db include: Import oplus changes
Change-Id: I8d69be8e47f903785d659ae6929e9acacfc79ae2
Signed-off-by: Pranaya Deomani <pranayadeomani@protonmail.com>
2021-12-25 18:03:37 +05:30

48 lines
836 B
C

/*
* linux/drivers/soc/oppo/oppo_midas/midas_proc.h
*
* Copyright (C) 2020 Fang Xiang <>
*
* June 2020 - Fang Xiang <>
* Added MIDAS drivers
*
* This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License version 2 as
* published by the Free Software Foundation.
*/
#ifndef __MIDAS_PROC_H__
#define __MIDAS_PROC_H__
#include <linux/sched.h>
#define STATE_MAX 60
#define CNT_MAX 1024
enum {
TYPE_UID = 0,
TYPE_RPID,
TYPE_SPID,
TYPE_TOTAL,
};
enum {
ID_PID = 0,
ID_TGID,
ID_UID,
ID_TOTAL,
};
struct state_inst {
unsigned int id[ID_TOTAL];
char name[TASK_COMM_LEN];
unsigned long long time_in_state[STATE_MAX];
};
struct midas_id_state {
unsigned int cnt;
struct state_inst insts[CNT_MAX];
};
#endif