You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
staticconstchar*prof_words[] = {"\033[91mYou can't just delete that!\033[0m", "\033[93mYour math is too poor!\033[0m", "\033[95mWithout the formula, it's meaningless!\033[0m", "\033[91mGo back and study linear algebra!\033[0m", "\033[96mThis is not rigorous.\033[0m", "\033[96mWe need publish papers!\033[0m", "\033[93mIntuition won't work here!\033[0m", "\033[95mThis is not scientific research!\033[0m", "\033[91mYou are running blind code!\033[0m"};
35
-
static __inline voidegg(void)
36
-
{
37
-
staticuint8_tshown=0;
38
-
if (shown) return;
39
-
pr_alert("easy_sched: From Beijing to Hiroshima, Professors kept saying the same thing:\n");
40
-
pr_alert("easy_sched: 'Your math is too poor!'\n");
41
-
pr_alert("easy_sched: But every time they said it, I had already deleted their math-heavy bullshit,\n");
42
-
pr_alert("easy_sched: and the system still ran — faster, cleaner, simpler.\n");
pr_alert("!!! Happy ???Day, time unknown 233 !!!\n");
47
-
shown=1;
48
-
}
49
-
static __inline voidegg2(structtask_struct*p)
50
-
{
51
-
staticuint64_tlast_yield=0;
52
-
if (global_timekeeper.ktime_sec-last_yield<30) return;
53
-
if (p->utime%255<233) return;
54
-
if (p->signal&&p->signal->tty)
55
-
{
56
-
charmsg_buf[256] = {0}; uint8_tmsg_len=0;
57
-
msg_len=sprintf(msg_buf, "\033[1;33mWarning from Prof with %s(PID=%lld):\033[0m %s\n", p->comm, p->pid, prof_words[get_cycles()%(sizeof(prof_words)/sizeof(char*))]);
58
-
switch(p->signal->tty->driver->type) {
59
-
caseTTY_DRIVER_TYPE_SERIAL:
60
-
uart_write233(p->signal->tty, msg_buf, msg_len, 0); // no flush, prevent hardware corruption
0 commit comments