From nobody Mon Sep 28 13:18:09 2026 Received: from smtp-out2.suse.de (smtp-out2.suse.de [195.135.223.131]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 745443CFF6A for ; Fri, 21 Aug 2026 09:18:59 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=195.135.223.131 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1787303949; cv=none; b=BfIikGgIVcQpLK/VzNJvaZa/ZT6mBCKe4it0nx8HzK1Fdlv/4jaF5XcszGCQVFyvKqp7VfHzElosF3CPZDEoUqcTj5sqYZUvaW69UbLVHMrx21RCmNtvdDEhV7A2OEZVpkYLVmhC/XZeBsNv1ol6EB/uYOD3ZLJYv0rKfHksXUE= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1787303949; c=relaxed/simple; bh=lUYkhbyVXr6JfiuHHMQkXQltgwmP57fY1J5vNwDlHOc=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version; b=EY47HmJ1Wlqy5SeuUGhVpDtgRkpHEL2yOuRM887698VG0sOOJMBhrA+d29JbHIsarP/tCX6Vnag6uJ+yPw6/xsfLpBADDSSoN2/reWqY7sPQ8rPnmuR//AW/XTnbYtJ/wOmWjDBvcwHOMYLCoRdurgSenBJPW6irPzrAWiOrDpY= ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dmarc=pass (p=quarantine dis=none) header.from=suse.com; spf=pass smtp.mailfrom=suse.com; dkim=pass (1024-bit key) header.d=suse.com header.i=@suse.com header.b=jaZiMT6j; dkim=pass (1024-bit key) header.d=suse.com header.i=@suse.com header.b=ch41m4Jt; arc=none smtp.client-ip=195.135.223.131 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=quarantine dis=none) header.from=suse.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=suse.com Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=suse.com header.i=@suse.com header.b="jaZiMT6j"; dkim=pass (1024-bit key) header.d=suse.com header.i=@suse.com header.b="ch41m4Jt" Received: from kunlun.suse.cz (unknown [IPv6:2a07:de40:b306:2000::2]) by smtp-out2.suse.de (Postfix) with ESMTP id BE5B63ED2; Fri, 21 Aug 2026 09:18:44 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=suse.com; s=susede1; t=1787303929; h=from:from:reply-to:date:date:message-id:message-id:to:to:cc:cc: mime-version:mime-version: content-transfer-encoding:content-transfer-encoding; bh=RRntCQitCaA0+o8Ijh43pMK8rFyAG98FwA2Gnfi6KWc=; b=jaZiMT6jMSr66Z+vMoiv/l+8thK8UmGS5mZGgyIJ0UWJZZtHKBxCD0o9Kc/r/z6aqxut4f XAYym7SKluleAEa2N7lKgVVJzUkMC5NXAI9hEzeQSKpokJyasxrBD3JZJyPddTX1yMbxrb 53NAaaTBMdka7j6Mrv/+dnUFZdIXFBs= Authentication-Results: smtp-out2.suse.de; dkim=pass header.d=suse.com header.s=susede1 header.b=ch41m4Jt DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=suse.com; s=susede1; t=1787303924; h=from:from:reply-to:date:date:message-id:message-id:to:to:cc:cc: mime-version:mime-version: content-transfer-encoding:content-transfer-encoding; bh=RRntCQitCaA0+o8Ijh43pMK8rFyAG98FwA2Gnfi6KWc=; b=ch41m4Jt0l3y96BYtHSW1k90X9m/NcU8Hyt4Hjvz9q/+ENhMj6yGUFhuAiJfsZGj1XOZ9h nOA13JVDEfnAeKzko52K2rwuPVyFlmjyAuScYCptforx4bPkYzFGfjzI93PJUiJ+fY/6P3 iM2W1zQnzC4k0bqbXC5loi6d0skxmRQ= From: Anthony Iliopoulos To: Andrew Morton Cc: linux-kernel@vger.kernel.org Subject: [PATCH] kernel/profile: remove setup_profiling_timer Date: Fri, 21 Aug 2026 11:17:44 +0200 Message-ID: <20260821091744.91496-1-ailiop@suse.com> X-Mailer: git-send-email 2.55.0 Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable X-Spamd-Result: default: False [16.69 / 50.00]; SPAM_FLAG(5.00)[]; NEURAL_SPAM_LONG(3.50)[1.000]; BAYES_HAM(-3.00)[100.00%]; NEURAL_SPAM_SHORT(3.00)[1.000]; HFILTER_HOSTNAME_UNKNOWN(2.50)[]; RDNS_NONE(2.00)[]; ONCE_RECEIVED(1.20)[]; HFILTER_HELO_IP_A(1.00)[kunlun.suse.cz]; MID_CONTAINS_FROM(1.00)[]; R_MISSING_CHARSET(0.50)[]; HFILTER_HELO_NORES_A_OR_MX(0.30)[kunlun.suse.cz]; R_DKIM_ALLOW(-0.20)[suse.com:s=susede1]; MIME_GOOD(-0.10)[text/plain]; MX_GOOD(-0.01)[]; MIME_TRACE(0.00)[0:+]; ARC_NA(0.00)[]; RCVD_COUNT_ZERO(0.00)[0]; TO_DN_SOME(0.00)[]; FROM_HAS_DN(0.00)[]; DIRECT_TO_MX(0.00)[git-send-email 2.55.0]; RCPT_COUNT_TWO(0.00)[2]; DKIM_TRACE(0.00)[suse.com:+]; SPAMHAUS_XBL(0.00)[2a07:de40:b306:2000::2:from]; FROM_EQ_ENVFROM(0.00)[]; DKIM_SIGNED(0.00)[suse.com:s=susede1]; DBL_BLOCKED_OPENRESOLVER(0.00)[kunlun.suse.cz:helo,suse.com:email,suse.com:mid,suse.com:dkim]; TO_MATCH_ENVRCPT_ALL(0.00)[] X-Spamd-Bar: ++++++++++++++++ X-Rspamd-Queue-Id: BE5B63ED2 X-Rspamd-Action: add header X-Spam-Flag: YES X-Spam-Score: 16.69 X-Spam-Level: **************** X-Rspamd-Server: rspamd2.dmz-prg2.suse.org X-Spam: Yes Content-Type: text/plain; charset="utf-8" No architecture uses setup_profiling_timer() at this point for setting a multiplier, so it can be safely removed. This allows arch-specific stub functions to be cleaned up in subsequent commits. There are no functional changes, as writing to /proc/profile will still reset the counters. Signed-off-by: Anthony Iliopoulos Reviewed-by: Bradley Morgan Tested-by: Nick Huang --- include/linux/profile.h | 1 - kernel/profile.c | 20 -------------------- 2 files changed, 21 deletions(-) diff --git a/include/linux/profile.h b/include/linux/profile.h index 3f53cdb0c27c..68edf60173b9 100644 --- a/include/linux/profile.h +++ b/include/linux/profile.h @@ -32,7 +32,6 @@ extern int prof_on __read_mostly; int profile_init(void); int profile_setup(char *str); void profile_tick(int type); -int setup_profiling_timer(unsigned int multiplier); =20 /* * Add multiple profiler hits to a given address: diff --git a/kernel/profile.c b/kernel/profile.c index 1fcf1adcf4eb..5002ea558951 100644 --- a/kernel/profile.c +++ b/kernel/profile.c @@ -177,32 +177,12 @@ read_profile(struct file *file, char __user *buf, siz= e_t count, loff_t *ppos) return read; } =20 -/* default is to not implement this call */ -int __weak setup_profiling_timer(unsigned mult) -{ - return -EINVAL; -} - /* * Writing to /proc/profile resets the counters - * - * Writing a 'profiling multiplier' value into it also re-sets the profili= ng - * interrupt frequency, on architectures that support this. */ static ssize_t write_profile(struct file *file, const char __user *buf, size_t count, loff_t *ppos) { -#ifdef CONFIG_SMP - if (count =3D=3D sizeof(int)) { - unsigned int multiplier; - - if (copy_from_user(&multiplier, buf, sizeof(int))) - return -EFAULT; - - if (setup_profiling_timer(multiplier)) - return -EINVAL; - } -#endif memset(prof_buffer, 0, prof_len * sizeof(atomic_t)); return count; } --=20 2.55.0