Received: by 2002:ac0:950c:0:0:0:0:0 with SMTP id f12csp3554716imc; Wed, 13 Mar 2019 23:08:12 -0700 (PDT) X-Google-Smtp-Source: APXvYqxOk9+tgcMHGVmevDlerDm9fAvzCYDZnxGN4Fg0O+Xux7GXPsPUW+O9a3/DETdnIVGQeJr0 X-Received: by 2002:a65:4244:: with SMTP id d4mr44146557pgq.419.1552543692380; Wed, 13 Mar 2019 23:08:12 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1552543692; cv=none; d=google.com; s=arc-20160816; b=Wn6n2kS5p6IS+6g6GYcbvtnKjub126ymmmQKBKMKiBbQ/UezQkfANTEZ9EvN1FOi6A SzK4ZMR8C+TYdnj5ILvm2lCL3sglZ4/s+Cg4MfPcIXx/DblkWpwhmPW3U1Q7daTpT/Gj WKvaX2J8hD7hCQOfiNtpESvt3JwsJ3FjEX3u7RuSXkm7Leuv2b7EaUtJZ9rc3ke3HP/K b18kyASdsxPLM+Ija1cs+u6E9XvttubUzcuXfNJSAe7GIaCnLJ7MYJHzqfxwIPT1Awgz TgExBferslndIlvE6yt/e0Fl5CnTE0x+VwRqsiqZN8KZFC7PULUH8Vof8xyldIJp03Np BjSg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding :content-language:in-reply-to:mime-version:user-agent:date :message-id:from:references:cc:to:subject; bh=1q3oNbgPYXlHJsmjhL0BhYjgRIYJk+cazPRAMD7AuSY=; b=qrhezkQCnezhhfcsHNJfie531yOj1nyIZcIEtkDP8YZVTMt21ok4Zd/OFUplDqxumf okGK5q3dsihfFuSAT3nCJpA5t4h6e3zvNCzFDT17sZqAWrjQPRCgT7dRpEBPet8cCYH4 kn58Dbdll8ZbdF0h5adzkou3l7AR4vtChCUbzKuD8mMMN+d2w8/dBkIWulKz4cSs0xu+ 9nWhMofvg5hMiRq1qx+CQwhHr4ix7H90/1kIR6urGecoeL7aHJ7JzEl34SGaUaNGWmne MoMBfgJpaXd56kqU0Zk3tMbrK/B7E0QjcE6TUv7dzXZg0bx+lkwdzDMk0cYRHIAhJWwa rgNg== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=intel.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id v4si12080284pff.172.2019.03.13.23.07.57; Wed, 13 Mar 2019 23:08:12 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=intel.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726610AbfCNGHW (ORCPT + 99 others); Thu, 14 Mar 2019 02:07:22 -0400 Received: from mga12.intel.com ([192.55.52.136]:25931 "EHLO mga12.intel.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726130AbfCNGHW (ORCPT ); Thu, 14 Mar 2019 02:07:22 -0400 X-Amp-Result: SKIPPED(no attachment in message) X-Amp-File-Uploaded: False Received: from fmsmga001.fm.intel.com ([10.253.24.23]) by fmsmga106.fm.intel.com with ESMTP/TLS/DHE-RSA-AES256-GCM-SHA384; 13 Mar 2019 23:07:21 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.58,477,1544515200"; d="scan'208";a="154884939" Received: from cli6-desk1.ccr.corp.intel.com (HELO [10.239.161.118]) ([10.239.161.118]) by fmsmga001.fm.intel.com with ESMTP; 13 Mar 2019 23:07:19 -0700 Subject: Re: [RFC][PATCH 00/16] sched: Core scheduling To: Aubrey Li , Tim Chen Cc: Subhra Mazumdar , Mel Gorman , Peter Zijlstra , Ingo Molnar , Thomas Gleixner , Paul Turner , Linux List Kernel Mailing , Linus Torvalds , Fr?d?ric Weisbecker , Kees Cook , Greg Kerr References: <20190218165620.383905466@infradead.org> <20190222124544.GY9565@techsingularity.net> <14a9adf7-9b50-1dfa-0c35-d04e976081c2@oracle.com> <19d5d492-a4c1-b3c8-cae4-da2fdfcb872b@oracle.com> <8098aac2-60f7-6fe9-2a3a-2fe2e1b49bde@linux.intel.com> From: "Li, Aubrey" Message-ID: <5f9b9e7b-3e6f-6f72-77ac-64117cf6002b@linux.intel.com> Date: Thu, 14 Mar 2019 14:07:15 +0800 User-Agent: Mozilla/5.0 (Windows NT 10.0; WOW64; rv:52.0) Gecko/20100101 Thunderbird/52.1.1 MIME-Version: 1.0 In-Reply-To: Content-Type: text/plain; charset=utf-8 Content-Language: en-US Content-Transfer-Encoding: 7bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org The original patch seems missing the following change for 32bit. Thanks, -Aubrey diff --git a/kernel/sched/cpuacct.c b/kernel/sched/cpuacct.c index 9fbb10383434..78de28ebc45d 100644 --- a/kernel/sched/cpuacct.c +++ b/kernel/sched/cpuacct.c @@ -111,7 +111,7 @@ static u64 cpuacct_cpuusage_read(struct cpuacct *ca, int cpu, /* * Take rq->lock to make 64-bit read safe on 32-bit platforms. */ - raw_spin_lock_irq(&cpu_rq(cpu)->lock); + raw_spin_lock_irq(rq_lockp(cpu_rq(cpu))); #endif if (index == CPUACCT_STAT_NSTATS) { @@ -125,7 +125,7 @@ static u64 cpuacct_cpuusage_read(struct cpuacct *ca, int cpu, } #ifndef CONFIG_64BIT - raw_spin_unlock_irq(&cpu_rq(cpu)->lock); + raw_spin_unlock_irq(rq_lockp(cpu_rq(cpu))); #endif return data; @@ -140,14 +140,14 @@ static void cpuacct_cpuusage_write(struct cpuacct *ca, int cpu, u64 val) /* * Take rq->lock to make 64-bit write safe on 32-bit platforms. */ - raw_spin_lock_irq(&cpu_rq(cpu)->lock); + raw_spin_lock_irq(rq_lockp(cpu_rq(cpu))); #endif for (i = 0; i < CPUACCT_STAT_NSTATS; i++) cpuusage->usages[i] = val; #ifndef CONFIG_64BIT - raw_spin_unlock_irq(&cpu_rq(cpu)->lock); + raw_spin_unlock_irq(rq_lockp(cpu_rq(cpu))); #endif } @@ -252,13 +252,13 @@ static int cpuacct_all_seq_show(struct seq_file *m, void *V) * Take rq->lock to make 64-bit read safe on 32-bit * platforms. */ - raw_spin_lock_irq(&cpu_rq(cpu)->lock); + raw_spin_lock_irq(rq_lockp(cpu_rq(cpu))); #endif seq_printf(m, " %llu", cpuusage->usages[index]); #ifndef CONFIG_64BIT - raw_spin_unlock_irq(&cpu_rq(cpu)->lock); + raw_spin_unlock_irq(rq_lockp(cpu_rq(cpu))); #endif } seq_puts(m, "\n");