From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from galois.linutronix.de (Galois.linutronix.de [193.142.43.55]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 32E7A271476 for ; Sun, 16 Nov 2025 20:48:43 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=193.142.43.55 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1763326125; cv=none; b=DtUxumXm1Uvv3ztQFaklyhDE7VtUSKsWuUKDjj6WZAN3VHa7kDjjQjy0JpLNi4nS5l2z0JVh7COI8cliV3pMOGpLRjtkrzy6xlzSy/xguaKawMH8HYmsWpKzJ8mBRThOS/4355rxMvoW8zdzJXscifEtv/qceW6lW6DZTdRwIeM= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1763326125; c=relaxed/simple; bh=EmK23Vxzl3pelC3sHQhqUzrhQXRfrxxwgHnXYKnoYrE=; h=Message-ID:From:To:Cc:Subject:References:MIME-Version: Content-Type:Date; b=QhTzXQp0N6pZi9/b5fT4J+w5FkaMwInyjzCtgHU6NawDUZ0a4zcI6wuNv7idjqh1UdjPLzln+JmF0F9vcMf5n7RAI8mHAmbCi634iqDOHXH/EGJLVgMNhn/g68clWaopSAqWTcjAxCuCUjQx+MEcg/KUP4hb6pzC3EpKxNQAkA0= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=linutronix.de; spf=pass smtp.mailfrom=linutronix.de; dkim=pass (2048-bit key) header.d=linutronix.de header.i=@linutronix.de header.b=P204MZz+; dkim=permerror (0-bit key) header.d=linutronix.de header.i=@linutronix.de header.b=Zv4IHMr+; arc=none smtp.client-ip=193.142.43.55 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=linutronix.de Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=linutronix.de Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=linutronix.de header.i=@linutronix.de header.b="P204MZz+"; dkim=permerror (0-bit key) header.d=linutronix.de header.i=@linutronix.de header.b="Zv4IHMr+" Message-ID: <20251104075426.866077100@linutronix.de> DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linutronix.de; s=2020; t=1763326122; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: references:references; bh=N64nva5o9W23Ove8VU2+uB8ksjC0FYBVSYr7EkkwZwU=; b=P204MZz+1Dq/+ve1hRMR2b0rtk6JMSTloF13HkF4rJAw5ARUeJ2iOFQloHgMxeYsAKgrEz F9+tE3AemJOQjkexme01gE8EzG9pf47mL7TydNbOGJtfkW+YgAZ9Hgt3l+itG93eQGyEqo PI0tEXaEKYAscWAvBwGDimQd0igTKQbJf9Oju1ymsLtygUxARCju2yqv48KqetUHt5YVQc ui2y0JntEPI72b11hNaabZaQCCVvmPMPqvOATK4mu9dw3dfUGXrMsKc2NwZ4dNSXdX7O5P IIj8oqLy1VJWVsalI9/6zc/N2Y2IlXSW6RqzxkTeHfpM+PL+tXvLB2p8wzRTyg== DKIM-Signature: v=1; a=ed25519-sha256; c=relaxed/relaxed; d=linutronix.de; s=2020e; t=1763326122; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: references:references; bh=N64nva5o9W23Ove8VU2+uB8ksjC0FYBVSYr7EkkwZwU=; b=Zv4IHMr+S9LNDtN0hxJPk8g0Wm1HWI2D9ZzgcpWIf+DhT4TAUGTwVk84Owk7RO0xoVtY8i icb4Hd2qA2WlN8Dg== From: Thomas Gleixner To: LKML Cc: Peter Zijlstra , Gabriele Monaco , Mathieu Desnoyers , Michael Jeanson , Jens Axboe , "Paul E. McKenney" , "Gautham R. Shenoy" , Florian Weimer , Tim Chen , Yury Norov , Shrikanth Hegde Subject: [patch V4 04/20] sched: Fixup whitespace damage References: <20251104075053.700034556@linutronix.de> Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Date: Sun, 16 Nov 2025 21:48:41 +0100 (CET) With whitespace checks enabled in the editor this makes eyes bleed. Signed-off-by: Thomas Gleixner --- kernel/sched/core.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) --- a/kernel/sched/core.c +++ b/kernel/sched/core.c @@ -5278,15 +5278,15 @@ context_switch(struct rq *rq, struct tas * kernel -> user switch + mmdrop_lazy_tlb() active * user -> user switch */ - if (!next->mm) { // to kernel + if (!next->mm) { // to kernel enter_lazy_tlb(prev->active_mm, next); next->active_mm = prev->active_mm; - if (prev->mm) // from user + if (prev->mm) // from user mmgrab_lazy_tlb(prev->active_mm); else prev->active_mm = NULL; - } else { // to user + } else { // to user membarrier_switch_mm(rq, prev->active_mm, next->mm); /* * sys_membarrier() requires an smp_mb() between setting @@ -5299,7 +5299,7 @@ context_switch(struct rq *rq, struct tas switch_mm_irqs_off(prev->active_mm, next->mm, next); lru_gen_use_mm(next->mm); - if (!prev->mm) { // from kernel + if (!prev->mm) { // from kernel /* will mmdrop_lazy_tlb() in finish_task_switch(). */ rq->prev_mm = prev->active_mm; prev->active_mm = NULL;