Files
android/include/linux/memory-state-time.h
threeeye bc1d038eac REVVL 6 Pro kernel bring-up: full working tree snapshot (2026-09-12)
Squashed backup commit (no shallow-clone history issues) of
xiaomi-mt6833-dev/kernel_xiaomi_mt6833 (lineage-23.2 branch, upstream
commit 9eece662e) plus all fixes applied to get everpal_defconfig building
clean against a modern (GCC 15.2.0) toolchain -- see the previous commit
message on the lineage-23.2 branch (also in this repo history is not
available here since this is a squashed snapshot; full incremental history
lives in the local DL380 checkout and the upstream GitHub remote).

Upstream: https://github.com/xiaomi-mt6833-dev/kernel_xiaomi_mt6833 (lineage-23.2)
2026-09-12 13:36:46 +00:00

43 lines
1.5 KiB
C

/* include/linux/memory-state-time.h
*
* Copyright (C) 2016 Google, Inc.
*
* This software is licensed under the terms of the GNU General Public
* License version 2, as published by the Free Software Foundation, and
* may be copied, distributed, and modified under those terms.
*
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
*
*/
#include <linux/workqueue.h>
#define UPDATE_MEMORY_STATE(BLOCK, VALUE) BLOCK->update_call(BLOCK, VALUE)
struct memory_state_update_block;
typedef void (*memory_state_update_fn_t)(struct memory_state_update_block *ub,
int value);
/* This struct is populated when you pass it to a memory_state_register*
* function. The update_call function is used for an update and defined in the
* typedef memory_state_update_fn_t
*/
struct memory_state_update_block {
memory_state_update_fn_t update_call;
int id;
};
/* Register a frequency struct memory_state_update_block to provide updates to
* memory_state_time about frequency changes using its update_call function.
*/
struct memory_state_update_block *memory_state_register_frequency_source(void);
/* Register a bandwidth struct memory_state_update_block to provide updates to
* memory_state_time about bandwidth changes using its update_call function.
*/
struct memory_state_update_block *memory_state_register_bandwidth_source(void);