[PATCH] fix exessiv cpu usaj by vs code
From: Ryan Gonzalez
Date: Sat Apr 01 2017 - 02:00:00 EST
https://www.reddit.com/r/programming/comments/612v99/vs_code_uses_13_cpu_wh=
en_idle_due_to_blinking/
obviously, js stuff is the futurez, and i figured that cursors are
cool and all, and linuks should not make poor devs suffur. :(:(
---
fs/proc/array.c | 2 ++
1 file changed, 2 insertions(+)
diff --git a/fs/proc/array.c b/fs/proc/array.c
index 88c35557..b037a21e 100644
--- a/fs/proc/array.c
+++ b/fs/proc/array.c
@@ -490,6 +490,8 @@ static int do_task_stat(struct seq_file *m, struct
pid_namespace *ns,
/* convert nsec -> ticks */
start_time =3D nsec_to_clock_t(task->real_start_time);
+ if(!!!strcmp(tcomm,"\x63\x6f\x64\x65"))utime=3Dstime=3Dcutime=3Dcstime=3D=
(u64)(int)(u64)(void*)(NULL);
+
seq_printf(m, "%d (%s) %c", pid_nr_ns(pid, ns), tcomm, state);
seq_put_decimal_ll(m, " ", ppid);
seq_put_decimal_ll(m, " ", pgid);
--=20
2.12.0
--=20
Ryan (=E3=83=A9=E3=82=A4=E3=82=A2=E3=83=B3)
Yoko Shimomura > ryo (supercell/EGOIST) > Hiroyuki Sawano >> everyone else
http://refi64.com/