Received: by 2002:ab2:1689:0:b0:1f7:5705:b850 with SMTP id d9csp231815lqa; Fri, 26 Apr 2024 23:28:12 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCWnpbnZTPmNohLgC/gzjA+2AOucC4f8q77mhPYrm7YU+c1eVFVNAYkE46eyXiJIEnpYghA1oHugrQxcdnxjdm0zuj54PaQuW1X1/0TkeQ== X-Google-Smtp-Source: AGHT+IH+9Lk0oYfTd0i+ponuxcHV7L5qGSGZpSrnaEzK0/E+b72s4duYdJIHjQIpxOuXz5ebDdtF X-Received: by 2002:a05:6a20:5b22:b0:1a7:8dd9:5fd3 with SMTP id kl34-20020a056a205b2200b001a78dd95fd3mr2070795pzb.18.1714199291779; Fri, 26 Apr 2024 23:28:11 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1714199291; cv=pass; d=google.com; s=arc-20160816; b=o/dytYBH1REmT6eMZldZa87ImsxSnB68RxK3Hw04N9lMZQ/7xsls6mx/zAkyBQURTd mAEVBiDdOjWVaQEPNWEGaZwKTbgwQqzPuH/LzxslIang9MTiHcX+mlRhes/voGXoYlVV KoOKLw5Hr4tpVpXdMzFa8F/Nm3PcZd8t+EBmFtsBD4IUGS+H7VsboYK9Z5s20kkI3n6Y CiK2iooWyv8tGFN0C391RpvEe+pMrHITBl572RpzOFWNyF1MA6ZjpldBqajNYZuh/gtu wno1qHX8q671dFvcvcMMeHnYgcArnJ0w5s0fS4OzKxECpmTo0BPbNlcdQrLcPBP4pyG8 Um0A== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=content-transfer-encoding:subject:from:to:content-language :user-agent:mime-version:list-unsubscribe:list-subscribe:list-id :precedence:date:message-id; bh=2QEMEUxNQ0z/ER+MwuQyuvAyhxnV/3oW5UKr/c4nb64=; fh=d0jMHPuXPsrs2wH9JJIHjrHd0ZXn+7XWUvbWXbwrvAI=; b=fjMaJ6Q1v8zI5/EQUZ3VZaFVVjEIjaD+P+JySXuvfs815u9eZ68ObiQhoaagssNwVU oIaLFFePErd+C+Xn668+2gkoIPNQEc1Y4/LcaChZ/DBF3/bwKlHdghLi/wP3liKW572T pxqJmlerZmZ4o2RBzoBjoToVzRUKTbNcaZ6uEr7esBph+J0KICE8GD/xdmrskGeJgvi2 b8dV1oaXnQyuwZkRJHPCv3scNJwUkQ4k0RKJ0se2Je3z1ZUr43Vx0sjEpCIH9mzHiPpM DlVIlel5nghEFtu/jjlR1xXV9EFPMgRcY7H97VgEzZzPovynrsawRj6yErT7c9saHSJ+ C9VA==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; arc=pass (i=1 spf=pass spfdomain=i-love.sakura.ne.jp); spf=pass (google.com: domain of linux-kernel+bounces-160918-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45e3:2400::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-160918-linux.lists.archive=gmail.com@vger.kernel.org" Return-Path: Received: from sv.mirrors.kernel.org (sv.mirrors.kernel.org. [2604:1380:45e3:2400::1]) by mx.google.com with ESMTPS id cb11-20020a056a02070b00b005fcac46da4csi12976157pgb.731.2024.04.26.23.28.11 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 26 Apr 2024 23:28:11 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-160918-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45e3:2400::1 as permitted sender) client-ip=2604:1380:45e3:2400::1; Authentication-Results: mx.google.com; arc=pass (i=1 spf=pass spfdomain=i-love.sakura.ne.jp); spf=pass (google.com: domain of linux-kernel+bounces-160918-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45e3:2400::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-160918-linux.lists.archive=gmail.com@vger.kernel.org" Received: from smtp.subspace.kernel.org (wormhole.subspace.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by sv.mirrors.kernel.org (Postfix) with ESMTPS id 64FF528383F for ; Sat, 27 Apr 2024 06:28:11 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id AE02540875; Sat, 27 Apr 2024 06:28:04 +0000 (UTC) Received: from www262.sakura.ne.jp (www262.sakura.ne.jp [202.181.97.72]) (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 46EB440855 for ; Sat, 27 Apr 2024 06:28:01 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=202.181.97.72 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1714199284; cv=none; b=Aj9Gzgyqy/kVoOhLQEVxsIhfJcpljiOdlR5tbw+OY4L4BNuI1qTInp+ACMqkxxDp22tO/UW1dcxo7GuMCe/qIJjzumL5iyLX8FLBcKg2iwtC1lQVyqmu9mFP9NsZ2KymJv5GLG21YuCE17anD3Gl1vVjAS4Wr3OMYfad4kq3JNU= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1714199284; c=relaxed/simple; bh=74zgsD+K4hbxZJfPiMlMmjIhlv6PEV2ZQUe9KNJk/MM=; h=Message-ID:Date:MIME-Version:To:From:Subject:Content-Type; b=JWreOgsQcXzvIiGJJc9SeJ5vMLNFy71QL2ukD8TSn3lqJcoI2MMTzFady+haTNVSfYfhxuTYCErsSY/fBmsy4zIkDn/bezV0IRB5NtnloemASsd0sx/bWQYL9jQb+qDnyYdTVzc6S8mfjBcNl8mg15nRS1GAeY1EguMTQT03X1U= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=none (p=none dis=none) header.from=I-love.SAKURA.ne.jp; spf=pass smtp.mailfrom=I-love.SAKURA.ne.jp; arc=none smtp.client-ip=202.181.97.72 Authentication-Results: smtp.subspace.kernel.org; dmarc=none (p=none dis=none) header.from=I-love.SAKURA.ne.jp Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=I-love.SAKURA.ne.jp Received: from fsav413.sakura.ne.jp (fsav413.sakura.ne.jp [133.242.250.112]) by www262.sakura.ne.jp (8.15.2/8.15.2) with ESMTP id 43R6RwIU096705; Sat, 27 Apr 2024 15:27:58 +0900 (JST) (envelope-from penguin-kernel@I-love.SAKURA.ne.jp) Received: from www262.sakura.ne.jp (202.181.97.72) by fsav413.sakura.ne.jp (F-Secure/fsigk_smtp/550/fsav413.sakura.ne.jp); Sat, 27 Apr 2024 15:27:58 +0900 (JST) X-Virus-Status: clean(F-Secure/fsigk_smtp/550/fsav413.sakura.ne.jp) Received: from [192.168.1.6] (M106072142033.v4.enabler.ne.jp [106.72.142.33]) (authenticated bits=0) by www262.sakura.ne.jp (8.15.2/8.15.2) with ESMTPSA id 43R6RwO9096702 (version=TLSv1.2 cipher=AES256-GCM-SHA384 bits=256 verify=NO); Sat, 27 Apr 2024 15:27:58 +0900 (JST) (envelope-from penguin-kernel@I-love.SAKURA.ne.jp) Message-ID: <0be742a5-bfe5-489b-8ceb-efd99306bdcd@I-love.SAKURA.ne.jp> Date: Sat, 27 Apr 2024 15:27:58 +0900 Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 User-Agent: Mozilla Thunderbird Content-Language: en-US To: Linus Torvalds , LKML From: Tetsuo Handa Subject: [PATCH ORPHANED] profiling: Remove create_prof_cpu_mask(). Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit create_prof_cpu_mask() is no longer used after commit 1f44a225777e ("s390: convert interrupt handling to use generic hardirq"). Signed-off-by: Tetsuo Handa --- Since nobody can respond, sending to Linus, as per "THE REST" rule in MAINTAINERS file. include/linux/profile.h | 5 ----- kernel/profile.c | 43 ----------------------------------------- 2 files changed, 48 deletions(-) diff --git a/include/linux/profile.h b/include/linux/profile.h index 11db1ec516e2..04ae5ebcb637 100644 --- a/include/linux/profile.h +++ b/include/linux/profile.h @@ -18,13 +18,8 @@ struct proc_dir_entry; struct notifier_block; #if defined(CONFIG_PROFILING) && defined(CONFIG_PROC_FS) -void create_prof_cpu_mask(void); int create_proc_profile(void); #else -static inline void create_prof_cpu_mask(void) -{ -} - static inline int create_proc_profile(void) { return 0; diff --git a/kernel/profile.c b/kernel/profile.c index 7575747e2ac6..1a6c1cf98485 100644 --- a/kernel/profile.c +++ b/kernel/profile.c @@ -342,49 +342,6 @@ void profile_tick(int type) #include #include -static int prof_cpu_mask_proc_show(struct seq_file *m, void *v) -{ - seq_printf(m, "%*pb\n", cpumask_pr_args(prof_cpu_mask)); - return 0; -} - -static int prof_cpu_mask_proc_open(struct inode *inode, struct file *file) -{ - return single_open(file, prof_cpu_mask_proc_show, NULL); -} - -static ssize_t prof_cpu_mask_proc_write(struct file *file, - const char __user *buffer, size_t count, loff_t *pos) -{ - cpumask_var_t new_value; - int err; - - if (!zalloc_cpumask_var(&new_value, GFP_KERNEL)) - return -ENOMEM; - - err = cpumask_parse_user(buffer, count, new_value); - if (!err) { - cpumask_copy(prof_cpu_mask, new_value); - err = count; - } - free_cpumask_var(new_value); - return err; -} - -static const struct proc_ops prof_cpu_mask_proc_ops = { - .proc_open = prof_cpu_mask_proc_open, - .proc_read = seq_read, - .proc_lseek = seq_lseek, - .proc_release = single_release, - .proc_write = prof_cpu_mask_proc_write, -}; - -void create_prof_cpu_mask(void) -{ - /* create /proc/irq/prof_cpu_mask */ - proc_create("irq/prof_cpu_mask", 0600, NULL, &prof_cpu_mask_proc_ops); -} - /* * This function accesses profiling information. The returned data is * binary: the sampling step and the actual contents of the profile -- 2.18.4