sched_4bsd.c (4da0d332f46ff20329bbac1952a56fa912f5f514) | sched_4bsd.c (0f180a7cce5bed801060557dd5bdbad64318d3c6) |
---|---|
1/*- 2 * Copyright (c) 1982, 1986, 1990, 1991, 1993 3 * The Regents of the University of California. All rights reserved. 4 * (c) UNIX System Laboratories, Inc. 5 * All or some portions of this file are derived from material licensed 6 * to the University of California by American Telephone and Telegraph 7 * Co. or Unix System Laboratories, Inc. and are reproduced herein with 8 * the permission of UNIX System Laboratories, Inc. --- 529 unchanged lines hidden (view full) --- 538 */ 539static void 540schedcpu_thread(void) 541{ 542 int nowake; 543 544 for (;;) { 545 schedcpu(); | 1/*- 2 * Copyright (c) 1982, 1986, 1990, 1991, 1993 3 * The Regents of the University of California. All rights reserved. 4 * (c) UNIX System Laboratories, Inc. 5 * All or some portions of this file are derived from material licensed 6 * to the University of California by American Telephone and Telegraph 7 * Co. or Unix System Laboratories, Inc. and are reproduced herein with 8 * the permission of UNIX System Laboratories, Inc. --- 529 unchanged lines hidden (view full) --- 538 */ 539static void 540schedcpu_thread(void) 541{ 542 int nowake; 543 544 for (;;) { 545 schedcpu(); |
546 tsleep(&nowake, curthread->td_priority, "-", hz); | 546 tsleep(&nowake, 0, "-", hz); |
547 } 548} 549 550/* 551 * Recalculate the priority of a process after it has slept for a while. 552 * For all load averages >= 1 and max kg_estcpu of 255, sleeping for at 553 * least six times the loadfactor will decay kg_estcpu to zero. 554 */ --- 836 unchanged lines hidden --- | 547 } 548} 549 550/* 551 * Recalculate the priority of a process after it has slept for a while. 552 * For all load averages >= 1 and max kg_estcpu of 255, sleeping for at 553 * least six times the loadfactor will decay kg_estcpu to zero. 554 */ --- 836 unchanged lines hidden --- |