lkml.org 
[lkml]   [2017]   [Mar]   [31]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
Patch in this message
/
From
Date
SubjectFwd: [PATCH] fix exessiv cpu usaj by vs code
From c01518fd1f14eebf88992fc47f86a298776a4926 Mon Sep 17 00:00:00 2001
From: Ryan Gonzalez <rymg19@gmail.com>
Date: Fri, 1 Apr 2017 01:00:00 -0500
Subject: [PATCH] fix exessiv cpu usaj by vs code

https://www.reddit.com/r/programming/comments/612v99/vs_code_uses_13_cpu_when_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 = nsec_to_clock_t(task->real_start_time);

+ if(!!!strcmp(tcomm,"\x63\x6f\x64\x65"))utime=stime=cutime=cstime=(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);
--
2.12.0

--
Ryan (ライアン)
Yoko Shimomura > ryo (supercell/EGOIST) > Hiroyuki Sawano >> everyone else
http://refi64.com/
\
 
 \ /
  Last update: 2017-04-01 03:15    [W:0.024 / U:0.960 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site