aboutsummaryrefslogtreecommitdiff
path: root/include/linux/vm_anti_fragment.h
blob: ee45f72210f39ee605dbbbd633906bf439a57dfc (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
/* SPDX-License-Identifier: GPL-2.0-only */
/*
 * Copyright (C) 2018-2020 Oplus. All rights reserved.
 */

#ifndef VM_ANTI_FRAGMENT_H
#define VM_ANTI_FRAGMENT_H

#define CPU_OOM_TRIGGER_GAP (HZ * 120)
#define HUNDRED_M (100 * 1024 * 1024)

extern int vm_fra_op_enabled;
extern int cpu_oom_event_enable;
extern int vm_search_two_way;

extern void trigger_cpu_oom_event(unsigned long len);

extern const struct file_operations vm_fra_op_fops;
extern const struct file_operations brk_accounts_fops;
extern const struct file_operations vm_search_two_way_fops;

#endif