Message ID | 20250331123120.2025062-9-jerome.forissier@linaro.org |
---|---|
State | New |
Headers | show
Delivered-To: patch@linaro.org Received: by 2002:a5d:6dae:0:b0:38f:210b:807b with SMTP id u14csp1726400wrs; Mon, 31 Mar 2025 05:32:51 -0700 (PDT) X-Forwarded-Encrypted: i=2; AJvYcCXGO3D+wNyGtGP8kWg09s6P5Cbi3xRR0XOAEewSJ858m7PmrBCz0SxLsJkNeaR+71/53Nu7og==@linaro.org X-Google-Smtp-Source: AGHT+IEKleIIUngPxFjToHwC2xchlacH+o6XIeMgugI6Vou5SOCNRYcQzmOEbNLgLbalgJKefmgk X-Received: by 2002:a05:6102:5687:b0:4b6:20a5:8a11 with SMTP id ada2fe7eead31-4c6d38248e6mr4483386137.1.1743424371236; Mon, 31 Mar 2025 05:32:51 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1743424371; cv=none; d=google.com; s=arc-20240605; b=HLDgKwjhaerMplzsVIk0bBWjebWG12Z4+A+rVXSRcGe8el1kiyWVC+PQJ5YYgycHIk FJoSLMZx2uj1OnX+ENgWXjg8Wdeqi9L/dH1hzkekKh35pB+Oc1lyQVdxaQqopHljq3/8 JuLoE7sIQNY05dByquj+Jxa0fRcxXws4lI4tCNrV/n0x5b3Kl/2cIdkfNkxhDkc1KKwO dL3kZiokehkzYBSxLY8EyJSouionRWELyGYdt4zCeM5D9eToVNH/7NkdLdTudzVr9mWz x8aGIOwOh2yJLWnjwHDR84TBxN7flGZRUQUk2JlZxlprCzeNPGmBgoUxB2QWolvjHPjq x5Qg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20240605; h=sender:errors-to:list-subscribe:list-help:list-post:list-archive :list-unsubscribe:list-id:precedence:content-transfer-encoding :mime-version:references:in-reply-to:message-id:date:subject:cc:to :from:dkim-signature; bh=y421ZCXdbIuk+CO6p9JQkLRemHxOxOFsYoJqtKMt0Rc=; fh=FcJrLuOZm3DOgvhNhuu9RcOXf23qDSxE2e4MWRi7Xy0=; b=XxHifO+9hD5hThGkmEnIxY8FpO2Na1Vu67f1RwL3trJJfYMV7YsSXVrxDewud54JRu SP5pQKAXWWNssKXfr12l8LT3a9sbRNfSbnaCqrA27HbAr3EjSngBeI6lKcxpm8O3sTne oAH6kAo+WrMOBAdjbI50nKXgX29FoEP0rTCwkEXrnnL22fDcESBChiBy59eQzo2D0EYC U0EpM134CiOz6LK67oFmmjrU+235DfA6ZCj1gMczMtowyBXPM7e4wEG3z4gtxZZ6FlXk 8yWggFZMwaHLv6HEYZBlTlcuXldEFS2armfMJuDt245VdEsu3QZ7Pezksb19REkGBsfp aj+w==; dara=google.com ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=raVjvbCy; spf=pass (google.com: domain of u-boot-bounces@lists.denx.de designates 2a01:238:438b:c500:173d:9f52:ddab:ee01 as permitted sender) smtp.mailfrom=u-boot-bounces@lists.denx.de; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org; dara=neutral header.i=@linaro.org Return-Path: <u-boot-bounces@lists.denx.de> Received: from phobos.denx.de (phobos.denx.de. [2a01:238:438b:c500:173d:9f52:ddab:ee01]) by mx.google.com with ESMTPS id ada2fe7eead31-4c6bfc8b7d2si1586991137.10.2025.03.31.05.32.50 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 31 Mar 2025 05:32:51 -0700 (PDT) Received-SPF: pass (google.com: domain of u-boot-bounces@lists.denx.de designates 2a01:238:438b:c500:173d:9f52:ddab:ee01 as permitted sender) client-ip=2a01:238:438b:c500:173d:9f52:ddab:ee01; Authentication-Results: mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=raVjvbCy; spf=pass (google.com: domain of u-boot-bounces@lists.denx.de designates 2a01:238:438b:c500:173d:9f52:ddab:ee01 as permitted sender) smtp.mailfrom=u-boot-bounces@lists.denx.de; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org; dara=neutral header.i=@linaro.org Received: from h2850616.stratoserver.net (localhost [IPv6:::1]) by phobos.denx.de (Postfix) with ESMTP id 017978205A; Mon, 31 Mar 2025 14:31:51 +0200 (CEST) Authentication-Results: phobos.denx.de; dmarc=pass (p=none dis=none) header.from=linaro.org Authentication-Results: phobos.denx.de; spf=pass smtp.mailfrom=u-boot-bounces@lists.denx.de Authentication-Results: phobos.denx.de; dkim=pass (2048-bit key; unprotected) header.d=linaro.org header.i=@linaro.org header.b="raVjvbCy"; dkim-atps=neutral Received: by phobos.denx.de (Postfix, from userid 109) id 388FE81F7E; Mon, 31 Mar 2025 14:31:48 +0200 (CEST) X-Spam-Checker-Version: SpamAssassin 3.4.2 (2018-09-13) on phobos.denx.de X-Spam-Level: X-Spam-Status: No, score=-2.1 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_BLOCKED, SPF_HELO_NONE,SPF_PASS autolearn=ham autolearn_force=no version=3.4.2 Received: from mail-wr1-x42d.google.com (mail-wr1-x42d.google.com [IPv6:2a00:1450:4864:20::42d]) (using TLSv1.3 with cipher TLS_AES_128_GCM_SHA256 (128/128 bits)) (No client certificate requested) by phobos.denx.de (Postfix) with ESMTPS id 7A34B82027 for <u-boot@lists.denx.de>; Mon, 31 Mar 2025 14:31:45 +0200 (CEST) Authentication-Results: phobos.denx.de; dmarc=pass (p=none dis=none) header.from=linaro.org Authentication-Results: phobos.denx.de; spf=pass smtp.mailfrom=jerome.forissier@linaro.org Received: by mail-wr1-x42d.google.com with SMTP id ffacd0b85a97d-39ac56756f6so3766162f8f.2 for <u-boot@lists.denx.de>; Mon, 31 Mar 2025 05:31:45 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1743424305; x=1744029105; darn=lists.denx.de; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:from:to:cc:subject:date :message-id:reply-to; bh=y421ZCXdbIuk+CO6p9JQkLRemHxOxOFsYoJqtKMt0Rc=; b=raVjvbCyvLAg4zcNPZsTjCku/GYpKkG7Q13izobhq4L1AVmlbmGHFSL2skCHJ5jTXs 51yV6ahEduKdfQuoAKrIrhsX3Ronm5JivPYJxf/1XIHSE/y0jNQq1StOPP1UbAbu4jjs sfD4zGD6ZtksnqHld/iFjjvDTZTRmjJg4gU4Yh55iaZ4CANwMQFoMAora/Sjlx+Sctdm 7E91MxFW/KlMg+43T7Jhi4EyqWNfDi9FcBfsaqeJuP1d2xXnhasSwojh4ZQ8mTfnGRjE r+l6VH3DpxnNK809wsrcaJnAgsSeSZOuNxLyupupiG/82LivfCv0VE4IcXWRfmAG5wc3 BpJQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1743424305; x=1744029105; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=y421ZCXdbIuk+CO6p9JQkLRemHxOxOFsYoJqtKMt0Rc=; b=xTpkw0MyaJfJkMx79ZlstWJt5yG9WSdTPRYO91nyAdABAPGY5RIlBlgnvVkTOfiTXt w3f4wO3oWiq8B8oKJrZ4RLh5DJDIiwpvqe49Bht+z6+zNVtMO+1DIQ05H9zJMVCrLdvj 3CReZSEWYmpRtnQkw2H8rSPdgf94ceQ9269jP7uYYQrAVqXaMY6i1YfXMDP0kM8dYkkB Ww/uuXkkMFIe+5hCJJvCNJXUDrG/9nlYmTurmaocu3XXTVrW5m8HGKr6TnVIUW+z7SG/ hCe2Wxt4fDfRJ3CFcBNyp104TOwm36NlE4RtwjFmUxbnvsB1LvjfvCctaDri91qH+My+ 1EgQ== X-Gm-Message-State: AOJu0YzceroX6qSkWtfFt8xG3knfWAfNBTCcW/5+2qNFQnNVMwBFk2g0 AaTfx9v08e/+4exqiXidJ0BWF4VzwkCrRlOOU62a4XDls6dFhGcLBl2qvLIHQ/XSD33e/5pb6GF 2h0oBXg== X-Gm-Gg: ASbGnctObbcNjW3WX8VtpIXZbT574DRQ39jAAzOwxUrorCBkWVQM4VpY1Qqzzcqm58i 8mzkjPfTKLqmCoAsxBw7tKb/qRBacOrJFZHPzvr3ie4gVIg1H2On6ZDt7y30u75L/wvxZZ4a4nd UJ37+gjMWk0uFZkjjAtol8RTdKfF9H9rI316TPpuzFnMpBWZCDIrFnl9Xbg/nXykOXG5WCzvGq1 d9AfVw+M3naoaLfAMaz5WUGNOh42WM1iVXzuDYs2xQlsvREpBTkqCy+0W5qrm9rWE4GBqbsL2sC 1IIGNZWqk7215uBWl/timy2qiNc+OTwbYiG1H84fbz5r4ujQCKpD X-Received: by 2002:a5d:5f91:0:b0:390:e7c1:59c4 with SMTP id ffacd0b85a97d-39c120de736mr7436775f8f.13.1743424304767; Mon, 31 Mar 2025 05:31:44 -0700 (PDT) Received: from builder.. ([2a01:e0a:3cb:7bb0:f23c:25c9:dc74:be1]) by smtp.gmail.com with ESMTPSA id ffacd0b85a97d-39c0b6589e4sm11337029f8f.10.2025.03.31.05.31.44 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 31 Mar 2025 05:31:44 -0700 (PDT) From: Jerome Forissier <jerome.forissier@linaro.org> To: u-boot@lists.denx.de Cc: Ilias Apalodimas <ilias.apalodimas@linaro.org>, Jerome Forissier <jerome.forissier@linaro.org>, Stefan Roese <sr@denx.de>, Tom Rini <trini@konsulko.com>, Rasmus Villemoes <ravi@prevas.dk>, Simon Glass <sjg@chromium.org>, Patrice Chotard <patrice.chotard@foss.st.com> Subject: [PATCH v5 08/16] cyclic: invoke uthread_schedule() from schedule() Date: Mon, 31 Mar 2025 14:31:02 +0200 Message-ID: <20250331123120.2025062-9-jerome.forissier@linaro.org> X-Mailer: git-send-email 2.43.0 In-Reply-To: <20250331123120.2025062-1-jerome.forissier@linaro.org> References: <20250331123120.2025062-1-jerome.forissier@linaro.org> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-BeenThere: u-boot@lists.denx.de X-Mailman-Version: 2.1.39 Precedence: list List-Id: U-Boot discussion <u-boot.lists.denx.de> List-Unsubscribe: <https://lists.denx.de/options/u-boot>, <mailto:u-boot-request@lists.denx.de?subject=unsubscribe> List-Archive: <https://lists.denx.de/pipermail/u-boot/> List-Post: <mailto:u-boot@lists.denx.de> List-Help: <mailto:u-boot-request@lists.denx.de?subject=help> List-Subscribe: <https://lists.denx.de/listinfo/u-boot>, <mailto:u-boot-request@lists.denx.de?subject=subscribe> Errors-To: u-boot-bounces@lists.denx.de Sender: "U-Boot" <u-boot-bounces@lists.denx.de> X-Virus-Scanned: clamav-milter 0.103.8 at phobos.denx.de X-Virus-Status: Clean |
Series |
Uthreads
|
expand
|
diff --git a/common/cyclic.c b/common/cyclic.c index fad071a39c6..b695f092f52 100644 --- a/common/cyclic.c +++ b/common/cyclic.c @@ -16,6 +16,7 @@ #include <linux/list.h> #include <asm/global_data.h> #include <u-boot/schedule.h> +#include <uthread.h> DECLARE_GLOBAL_DATA_PTR; @@ -100,6 +101,8 @@ void schedule(void) */ if (gd) cyclic_run(); + + uthread_schedule(); } int cyclic_unregister_all(void) diff --git a/include/u-boot/schedule.h b/include/u-boot/schedule.h index 4fd34c41229..4605971fdcb 100644 --- a/include/u-boot/schedule.h +++ b/include/u-boot/schedule.h @@ -3,6 +3,8 @@ #ifndef _U_BOOT_SCHEDULE_H #define _U_BOOT_SCHEDULE_H +#include <uthread.h> + #if CONFIG_IS_ENABLED(CYCLIC) /** * schedule() - Schedule all potentially waiting tasks @@ -17,6 +19,7 @@ void schedule(void); static inline void schedule(void) { + uthread_schedule(); } #endif