Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > linux.kernel > #1614350

Fwd: [PATCH] fix exessiv cpu usaj by vs code

From Ryan Gonzalez <rymg19@gmail.com>
Newsgroups linux.kernel
Subject Fwd: [PATCH] fix exessiv cpu usaj by vs code
Date 2017-04-01 03:20 +0200
Message-ID <trfRT-3Wr-1@gated-at.bofh.it> (permalink)
References <trfRT-3Wr-3@gated-at.bofh.it>
Organization linux.* mail to news gateway

Show all headers | View raw


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/

Back to linux.kernel | Previous | Next | Find similar | Unroll thread


Thread

Fwd: [PATCH] fix exessiv cpu usaj by vs code Ryan Gonzalez <rymg19@gmail.com> - 2017-04-01 03:20 +0200

csiph-web