Skip to content

Commit

Permalink
fork: boost the cpu to max freq when an app is launched
Browse files Browse the repository at this point in the history
francisco: adapted for HH
Signed-off-by: Francisco Franco <[email protected]>
  • Loading branch information
kerneltoast authored and franciscofranco committed Nov 2, 2018
1 parent 3b117d2 commit da162ca
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions kernel/fork.c
Original file line number Diff line number Diff line change
Expand Up @@ -69,6 +69,7 @@
#include <linux/oom.h>
#include <linux/khugepaged.h>
#include <linux/signalfd.h>
#include <linux/cpu_boost.h>

#include <asm/pgtable.h>
#include <asm/pgalloc.h>
Expand Down Expand Up @@ -1625,6 +1626,9 @@ long do_fork(unsigned long clone_flags,
int trace = 0;
long nr;

if (is_zygote_pid(current->pid))
do_input_boost_max();

/*
* Do some preliminary argument and permissions checking before we
* actually start allocating stuff
Expand Down

0 comments on commit da162ca

Please sign in to comment.