From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from shelob.surriel.com (shelob.surriel.com [96.67.55.147]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.lore.kernel.org (Postfix) with ESMTPS id 64333C4167B for ; Fri, 8 Dec 2023 17:47:23 +0000 (UTC) Received: from localhost ([::1] helo=shelob.surriel.com) by shelob.surriel.com with esmtp (Exim 4.96.2) (envelope-from ) id 1rBewc-0006bh-0x for kernelnewbies@archiver.kernel.org; Fri, 08 Dec 2023 12:47:22 -0500 Received: from mail-yw1-x1135.google.com ([2607:f8b0:4864:20::1135]) by shelob.surriel.com with esmtps (TLS1.2) tls TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256 (Exim 4.96.2) (envelope-from ) id 1rBeuZ-0004cH-1h for kernelnewbies@kernelnewbies.org; Fri, 08 Dec 2023 12:45:18 -0500 Received: by mail-yw1-x1135.google.com with SMTP id 00721157ae682-5d3d5b10197so20589137b3.2 for ; Fri, 08 Dec 2023 09:45:05 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=vt-edu.20230601.gappssmtp.com; s=20230601; t=1702057498; x=1702662298; darn=kernelnewbies.org; h=message-id:date:mime-version:references:in-reply-to:subject:cc:to :from:sender:from:to:cc:subject:date:message-id:reply-to; bh=nKlHp/3yKu/T4tz2pUdMXdYBgDvsK0nW6Q/HDrwtfro=; b=Mhos3+aMMeeUDdAMnEdMWZo/pn75m8p2V5T3rlVGd+exGaLAH8yJe6BTE+35TLIrrM D7LdQ5CpC7DKE/0Dl1XqBvmQYS3ea4YcYbT4UMjU+cPq1R8DNZcDOGAoa6Y1N9xO9sxJ N+vThScdaGafUQvRC5LhxRWZhRFOihxnbhL/C1Nyyzg7L6Snc5882El1DMHnjbfVRE4I 5FbyisqRzIN5zQH8hd2b44rYrsV3kkobzXXYxSTsSOzJ1Q+c+Bd265TpSvSORgj4cZGO mx519NstFTlgltXO2OcrlXO4UCwQHhqOZkawZgm3Jq9FvFv3InCepdbsS8M0BDDi7+oG 9cJw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1702057498; x=1702662298; h=message-id:date:mime-version:references:in-reply-to:subject:cc:to :from:sender:x-gm-message-state:from:to:cc:subject:date:message-id :reply-to; bh=nKlHp/3yKu/T4tz2pUdMXdYBgDvsK0nW6Q/HDrwtfro=; b=eQuYbUqc4odUE+oMTI/CJ9V/EIyIZNV5S8O35f0wA3bzrPuuI6mghgnqrweB20hHn6 u4yCGFUwoXXWqbZ0CZo+TSmb/QmOrkKVX/P75fV+HbeouWZRr3/KQIJwm8Fs6axbV4Mf 0cHeq4QU7fcG4pDa/lpn0YIqOLHzCbbrE5mIyQA0RQHra3rS/ALgjZ7RNgoAPfDA+zH7 O9Tr7vgt+DquJgICWdzB/9vIECG7XAmG8Xm+7H7Rl+8Xn+DHLGUCnwaijCrHIIIlCXuU HlcWgCxhGdwmNbxLyadfjAXaZEJnvUGRTevxbQTVao0CbY5WBq255+oQ6bpAtgRll9Qw 4ybQ== X-Gm-Message-State: AOJu0YxkgIatiucPW/wAnCcA7k1FldZfLgJ4NBIhU1tVozb+0oXKwZJm qGg3DrE44bRVny6POFFBWivApA== X-Google-Smtp-Source: AGHT+IF/O3v0nh1bPjiCSZu6VKTiKPR8BRDKlp0tKgWnGm0opq+ELiM6oSFhYVqLVfmEj3QWG4Wi9w== X-Received: by 2002:a81:6582:0:b0:5d3:f36c:4aa3 with SMTP id z124-20020a816582000000b005d3f36c4aa3mr323678ywb.15.1702057498514; Fri, 08 Dec 2023 09:44:58 -0800 (PST) Received: from turing-police (c-73-31-28-59.hsd1.va.comcast.net. [73.31.28.59]) by smtp.gmail.com with ESMTPSA id s186-20020a815ec3000000b005da43aa4e56sm793840ywb.89.2023.12.08.09.44.57 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 08 Dec 2023 09:44:57 -0800 (PST) From: "Valdis Kl=?utf-8?Q?=c4=93?=tnieks" X-Google-Original-From: "Valdis Kl=?utf-8?Q?=c4=93?=tnieks" X-Mailer: exmh version 2.10.0-pre 07/05/2021 with nmh-1.8+dev To: Dawei Li Subject: Re: when/how is the schedule() function actually called? In-reply-to: References: Mime-Version: 1.0 Date: Fri, 08 Dec 2023 12:44:56 -0500 Message-ID: <115587.1702057496@turing-police> Cc: kernelnewbies@kernelnewbies.org X-BeenThere: kernelnewbies@kernelnewbies.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: Learn about the Linux kernel List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Errors-To: kernelnewbies-bounces+kernelnewbies=archiver.kernel.org@kernelnewbies.org On Sat, 09 Dec 2023 00:16:32 +0800, Dawei Li said: > Greetings! > (Although I am using the 2.6.34 version, I believe the question is generally > applicable to any kernel version.) That is, in general, a bad assumption when you are looking at kernel versions old enough that they count as digital archaeology.... [/usr/src/linux-next] git show v2.6.34 tag v2.6.34 Tagger: Linus Torvalds Date: Sun May 16 14:17:44 2010 -0700 [/usr/src/linux-next] git diff --shortstat v2.6.34..next-20231205 96965 files changed, 32056985 insertions(+), 7606202 deletions(-) Given that next-20231205 has just over 33 million lines of code, we're well into territory where there's a vanishing small percentage of code still remaining unchanged from 2010. And yes, that means that even basic functions schedule() and friends have been reworked in he past decade and a half.... _______________________________________________ Kernelnewbies mailing list Kernelnewbies@kernelnewbies.org https://lists.kernelnewbies.org/mailman/listinfo/kernelnewbies