From patchwork Tue Nov 7 21:57:23 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Ankur Arora X-Patchwork-Id: 13449399 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from kanga.kvack.org (kanga.kvack.org [205.233.56.17]) by smtp.lore.kernel.org (Postfix) with ESMTP id A328AC4332F for ; Tue, 7 Nov 2023 22:00:20 +0000 (UTC) Received: by kanga.kvack.org (Postfix) id F133D8D007A; Tue, 7 Nov 2023 17:00:01 -0500 (EST) Received: by kanga.kvack.org (Postfix, from userid 40) id E48028D007C; Tue, 7 Nov 2023 17:00:01 -0500 (EST) X-Delivered-To: int-list-linux-mm@kvack.org Received: by kanga.kvack.org (Postfix, from userid 63042) id 93EF68D007A; Tue, 7 Nov 2023 17:00:01 -0500 (EST) X-Delivered-To: linux-mm@kvack.org Received: from relay.hostedemail.com (smtprelay0010.hostedemail.com [216.40.44.10]) by kanga.kvack.org (Postfix) with ESMTP id 7B4208D007C for ; Tue, 7 Nov 2023 17:00:01 -0500 (EST) Received: from smtpin28.hostedemail.com (a10.router.float.18 [10.200.18.1]) by unirelay09.hostedemail.com (Postfix) with ESMTP id 5917580918 for ; Tue, 7 Nov 2023 22:00:01 +0000 (UTC) X-FDA: 81432526602.28.4778401 Received: from mx0b-00069f02.pphosted.com (mx0b-00069f02.pphosted.com [205.220.177.32]) by imf09.hostedemail.com (Postfix) with ESMTP id 01348140019 for ; Tue, 7 Nov 2023 21:59:57 +0000 (UTC) Authentication-Results: imf09.hostedemail.com; dkim=pass header.d=oracle.com header.s=corp-2023-03-30 header.b=ecT3GYc+; dkim=pass header.d=oracle.onmicrosoft.com header.s=selector2-oracle-onmicrosoft-com header.b=e0z9IIWF; arc=pass ("microsoft.com:s=arcselector9901:i=1"); dmarc=pass (policy=none) header.from=oracle.com; spf=pass (imf09.hostedemail.com: domain of ankur.a.arora@oracle.com designates 205.220.177.32 as permitted sender) smtp.mailfrom=ankur.a.arora@oracle.com ARC-Seal: i=2; s=arc-20220608; d=hostedemail.com; t=1699394398; a=rsa-sha256; cv=pass; b=C/jWBrd4aPkgxtlUJM/otY9H4EDMkqCsXOWfYJCZNOt6lchGF3SOeDlQKy4zyQcPHnLWn+ ubB51+jpaftnCxAOosRpjT/Gjwdfcm5lZBsaJtRD2ObNoX91009NIZXNa5xNDZaavfl52T LZBDi92ZdYdCasIEqgDEekfA/booF9k= ARC-Authentication-Results: i=2; imf09.hostedemail.com; dkim=pass header.d=oracle.com header.s=corp-2023-03-30 header.b=ecT3GYc+; dkim=pass header.d=oracle.onmicrosoft.com header.s=selector2-oracle-onmicrosoft-com header.b=e0z9IIWF; arc=pass ("microsoft.com:s=arcselector9901:i=1"); dmarc=pass (policy=none) header.from=oracle.com; spf=pass (imf09.hostedemail.com: domain of ankur.a.arora@oracle.com designates 205.220.177.32 as permitted sender) smtp.mailfrom=ankur.a.arora@oracle.com ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=hostedemail.com; s=arc-20220608; t=1699394398; h=from:from:sender:reply-to:subject:subject:date:date: message-id:message-id:to:to:cc:cc:mime-version:mime-version: content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references:dkim-signature; bh=YmgAgvFBQBQ1RlnhG7sJhAFaYMeGOMdlXGUigYIR6iM=; b=0Z2P+S3vjppD106i2MHQ2J62Q9aLap2s//MUSxbcDwACmpXraSIRhC/3qJtjUEshPaot68 icujRz4whTtLFplVzqvg86WeOfpsJVGZL4c9L8xFmSTC4swg+edLeZ3LjtYmldnQdfLCbJ U+aALt2zR6KN2nGHIvmojMF4uUSVdzc= Received: from pps.filterd (m0333520.ppops.net [127.0.0.1]) by mx0b-00069f02.pphosted.com (8.17.1.19/8.17.1.19) with ESMTP id 3A7LKCxV023477; Tue, 7 Nov 2023 21:59:39 GMT DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=oracle.com; h=from : to : cc : subject : date : message-id : in-reply-to : references : content-transfer-encoding : content-type : mime-version; s=corp-2023-03-30; bh=YmgAgvFBQBQ1RlnhG7sJhAFaYMeGOMdlXGUigYIR6iM=; b=ecT3GYc+Faq5fuJh0NylaCiuGTae2PBIPMnefpaYnXAO3PWeE0W4FG683HdL0cB/cIkA Eg6hxxu14yqCMssEa2qDywazxHI0VGe3pT9f/vst7Ufi0Ko28YzOzmCIsUJspe7x8OOG r0F10JgUj1sRS9TU9FxYN3wEnQF/j5qzzkKyaVlmCSDDPUchLeiVPuJJenER9Tz97a4q CG3RRy6+lVwY8OL7qNqxFUsci+Xdfp09LH3Xy5Our5IBqWYC262dWw8UVn+ZnkWRTMHt 21ARJVUPpV3Al/XrvXwk7XqAGfYclzv9Z/ETXiloW9moDSoILw4ac9biAGVTd32qxxwr RA== Received: from iadpaimrmta01.imrmtpd1.prodappiadaev1.oraclevcn.com (iadpaimrmta01.appoci.oracle.com [130.35.100.223]) by mx0b-00069f02.pphosted.com (PPS) with ESMTPS id 3u7w2002hk-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=OK); Tue, 07 Nov 2023 21:59:39 +0000 Received: from pps.filterd (iadpaimrmta01.imrmtpd1.prodappiadaev1.oraclevcn.com [127.0.0.1]) by iadpaimrmta01.imrmtpd1.prodappiadaev1.oraclevcn.com (8.17.1.19/8.17.1.19) with ESMTP id 3A7LJIKj023748; Tue, 7 Nov 2023 21:59:38 GMT Received: from nam04-dm6-obe.outbound.protection.outlook.com (mail-dm6nam04lp2040.outbound.protection.outlook.com [104.47.73.40]) by iadpaimrmta01.imrmtpd1.prodappiadaev1.oraclevcn.com (PPS) with ESMTPS id 3u7w241ghy-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=OK); Tue, 07 Nov 2023 21:59:38 +0000 ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=VgNMgA8UJr5MQBUNIvf28Kdgtu7+fgAZG3qhBXI9exlIgq/7nB/HUAAV9LNd7C4LRbLlmiaDex5IkdlXuxu8Nd2/qyy96TSIWaWcl+uzWdH5aqjfsN629SSFLcXpiXMY6jVaLWeCrzAAB1Hx3E51axhmFvvplk9jCe9QR42uEedkciMeQNVyqPEPAdEFzhee702jPj/MQ4QCGPwV+Kffwloq70BuWf796GRON+O+tbyml/2Gq2z0Vx3HDrf9jPCQK5+Q35GUvD5VQr5XeK4/n2U3uDIkCBvoA++brqE9gn+uwVkFNgjLSe6Hahp03ynqvBNgQlNDQS74EQH3z2tN6g== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=microsoft.com; s=arcselector9901; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-AntiSpam-MessageData-ChunkCount:X-MS-Exchange-AntiSpam-MessageData-0:X-MS-Exchange-AntiSpam-MessageData-1; bh=YmgAgvFBQBQ1RlnhG7sJhAFaYMeGOMdlXGUigYIR6iM=; b=m94W/3r42CKM6NTbLBuzuh33HNbI0x/WUBljNZWXFu+b2UwFQrUUM9gArZ+5LImTxqDgcl6G0pRxE5ECtpKJj65CfwH6oh9x+SzPOCiIOC7Z351fi3p0eOQtCWkBPz6fxa1aOP1nO4IineF/PAIHwoHJGFOuYpWVmxfZKX48GT2ByuQMBG1J1P2vI/vpdaMeJxFDZvN1t6fV6fqGrrq7+2IO2Jd4O5WYEJCGfKzQ2LB36MYrM+GWvRjoqvPZrGIVbW8dIbzZ/rxS0L7ljUz9VHPBI2NqhSAwXm8vZUltRLm3Lg28l1nkyD+vmtdxZjScGydYnv4f/gDj3NL1A8Q8qA== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass smtp.mailfrom=oracle.com; dmarc=pass action=none header.from=oracle.com; dkim=pass header.d=oracle.com; arc=none DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=oracle.onmicrosoft.com; s=selector2-oracle-onmicrosoft-com; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=YmgAgvFBQBQ1RlnhG7sJhAFaYMeGOMdlXGUigYIR6iM=; b=e0z9IIWFtpRFOZ/FqYi+9nwXYIf7dtq/vW2XcMJHVrJDdHNdxxXWsbvKERC3kEpiJ4Hc5hcDp9GDYWTKmlrqRVp6kjg5nZMwnvSlIsTnsYpKvdg0HSRXGVHCwIvsCd4D3A5xbH46soOawvmO3Arq2dvTSyGlXsWf+4ZTbARlhP4= Received: from CO6PR10MB5409.namprd10.prod.outlook.com (2603:10b6:5:357::14) by CY5PR10MB6141.namprd10.prod.outlook.com (2603:10b6:930:37::21) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.6954.28; Tue, 7 Nov 2023 21:59:36 +0000 Received: from CO6PR10MB5409.namprd10.prod.outlook.com ([fe80::1ce3:4a8c:4c99:acea]) by CO6PR10MB5409.namprd10.prod.outlook.com ([fe80::1ce3:4a8c:4c99:acea%7]) with mapi id 15.20.6954.028; Tue, 7 Nov 2023 21:59:36 +0000 From: Ankur Arora To: linux-kernel@vger.kernel.org Cc: tglx@linutronix.de, peterz@infradead.org, torvalds@linux-foundation.org, paulmck@kernel.org, linux-mm@kvack.org, x86@kernel.org, akpm@linux-foundation.org, luto@kernel.org, bp@alien8.de, dave.hansen@linux.intel.com, hpa@zytor.com, mingo@redhat.com, juri.lelli@redhat.com, vincent.guittot@linaro.org, willy@infradead.org, mgorman@suse.de, jon.grimm@amd.com, bharata@amd.com, raghavendra.kt@amd.com, boris.ostrovsky@oracle.com, konrad.wilk@oracle.com, jgross@suse.com, andrew.cooper3@citrix.com, mingo@kernel.org, bristot@kernel.org, mathieu.desnoyers@efficios.com, geert@linux-m68k.org, glaubitz@physik.fu-berlin.de, anton.ivanov@cambridgegreys.com, mattst88@gmail.com, krypton@ulrich-teichert.org, rostedt@goodmis.org, David.Laight@ACULAB.COM, richard@nod.at, mjguzik@gmail.com, Ankur Arora Subject: [RFC PATCH 37/86] sched: make test_*_tsk_thread_flag() return bool Date: Tue, 7 Nov 2023 13:57:23 -0800 Message-Id: <20231107215742.363031-38-ankur.a.arora@oracle.com> X-Mailer: git-send-email 2.31.1 In-Reply-To: <20231107215742.363031-1-ankur.a.arora@oracle.com> References: <20231107215742.363031-1-ankur.a.arora@oracle.com> X-ClientProxiedBy: MW4P221CA0005.NAMP221.PROD.OUTLOOK.COM (2603:10b6:303:8b::10) To CO6PR10MB5409.namprd10.prod.outlook.com (2603:10b6:5:357::14) MIME-Version: 1.0 X-MS-PublicTrafficType: Email X-MS-TrafficTypeDiagnostic: CO6PR10MB5409:EE_|CY5PR10MB6141:EE_ X-MS-Office365-Filtering-Correlation-Id: 6fd9d6ac-9e76-44f0-6df5-08dbdfdcd4cd X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: uXfE7riqVCjzop+7ucH/vYW89KbduvzqXACrrb8f6x6X+aS2wlx10yJhEDYgZPc1Vd+heF7gQTopC1VzZHDe0RY4MtRwzAORi6esYZj2eT1eX7BQJZjvf1WWYTDu0/xmNZle5umq0ORqDF4EPCYghxVZpzKapIrPnZHY68EVNk3+j6InlI/2ddiOiL98gqnf5SZDleH0KxqokqoOQ7Hsj6pnqKQI7g8kaBiEWzIgIlH5TDBUcnF5G0DnObHkmfIUarVyHXWUCICiBhjv1/JCOcHXpc3GNccv6R5i4GfCrXxPb8FpbUATBgxnIwNXCXBMnVM4MXwT+jjJ+v6s8U7qYT6ZAu0A1ciUa4UP8RkgCDIFw+vxgiuZgLsxkjoGdFgC+N+ll/kMcOE7u8lqowWfEB1lywZ535Copu5YpsmP6TDBP1Nk/KEFvPntOKv2CACdNkGf+V5FdD9Hp7+/TJEKgYBJU8YopXtU4GCAUH+krVBiUyzAadtTq2Owa8YX8fbHULfk3OUJ+EjNH4mSKBs6Sr8VjeeqH618tlR51ed/3uERiUWXFRQjXvkrFEm1+ptn X-Forefront-Antispam-Report: CIP:255.255.255.255;CTRY:;LANG:en;SCL:1;SRV:;IPV:NLI;SFV:NSPM;H:CO6PR10MB5409.namprd10.prod.outlook.com;PTR:;CAT:NONE;SFS:(13230031)(346002)(396003)(376002)(39860400002)(136003)(366004)(230922051799003)(186009)(1800799009)(451199024)(64100799003)(6506007)(86362001)(103116003)(8676002)(478600001)(8936002)(6486002)(4326008)(6666004)(38100700002)(1076003)(5660300002)(36756003)(6512007)(66476007)(6916009)(66946007)(66556008)(316002)(2616005)(7416002)(107886003)(7406005)(2906002)(26005)(83380400001)(41300700001);DIR:OUT;SFP:1101; X-MS-Exchange-AntiSpam-MessageData-ChunkCount: 1 X-MS-Exchange-AntiSpam-MessageData-0: v8DLRKStTdgyE3NWw+DN02EqygQ56aEdrfTqr0Kt9JHX4yO9o2jaqSvWNzOQnQx17Ibj9jnt+fDnm4+9KWGIBN6uSYdzuV5pn7wqlISLOSM6rOs0hZRjPibYGpWHKEkpq0uVP6m5fE5/17sWsqIKrAFyXKePM/3dFmGHAGRrhh3sHMIbcnan4pOyJXma2ANCR8OA2ay47FNm/m/cRm08n4xC6VVZkFyrreev8Sgo7EFi7miUilxWFNHF+vGVBKMVoQ62S5i0H7xejkN2wrrerrfwFcAFllEFl99AKL7BNRgkOpx9LmOTH3/yOEzeX/CObc0vbBP6F+1IGIiGH8jLQgJ3p1hPskhqENrK9/9G+MAEa8UGeQDR2MWz1JykqkOlPsPwYdKMWr9Hkew2tWKec8Z98YpjoankJenT9r6DPVZ+MnHX/U8gEYl6IFdOH5N8YoRTGTsdMSN1jGFNDBNjh+b66zq+6VTSruw0+8YQJtjmx5zgnqF7o+GvEcfgLv90WF+OwxpGQopU20QA9SGPd1rbbClGcz+vnDa7W6x0miQ+SQXxDTXKHLcV7zsKXGi2nFnqI6EWn/e6hRxVMljajORbbkKE3r9EYYJv9NeG3ACtQ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/BC9YNugi1rf4B1FOtqZoIp/Jy+LkN8PMybvTJQp2viP/c9dPS2ILsFUrUfEtr0/JKCG3TTAUnql/+PXxUIOPC3aSfTxfYxH8vaHPXyATJSR00GWajVH35Hhqv61mmTWLJt4P9TeyCMYXwaqdFO+sSlScK3lqc40er1oYMEfC8EkvxLTk9d56jNgYOmBe7ffD0y1Q+PE8bftTpuXm5x869PqL26sg7A/WvVnQWON32OTmbpA2zzwEmWmRFSt1yof4CosUUEVDkP6v+uM4p3bsbNCuW/QRTEWxj8wd3BZuK1XZg/4MdCd2DaqgCe6sU6U8q01x3OIk49Ol8GXWtfcq0zKu03jwhMYo9pYm6DBtGGmmPwizfOgEJUKdy6lWDX916zrMrZzCxdhOqB2HCCtwduVQfcMrP+VLhBXbGtsR/4GqMZVm+wU87p14rRZBBK1UguTMsjn/Q8bjhK/4VIbsO4Zd7K4raizFup6g== X-OriginatorOrg: oracle.com X-MS-Exchange-CrossTenant-Network-Message-Id: 6fd9d6ac-9e76-44f0-6df5-08dbdfdcd4cd X-MS-Exchange-CrossTenant-AuthSource: CO6PR10MB5409.namprd10.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 07 Nov 2023 21:59:36.0638 (UTC) X-MS-Exchange-CrossTenant-FromEntityHeader: Hosted X-MS-Exchange-CrossTenant-Id: 4e2c6054-71cb-48f1-bd6c-3a9705aca71b X-MS-Exchange-CrossTenant-MailboxType: HOSTED X-MS-Exchange-CrossTenant-UserPrincipalName: 3p7NUjtuXMOExkHH9+VdXxixp7nHdA19JM/+tDnk653+ypcYR9TzUQRSXY0nhzUasLSlk9M38v9khg9U6r1rhroYYDVpNOVRioU0CUP+rU4= X-MS-Exchange-Transport-CrossTenantHeadersStamped: CY5PR10MB6141 X-Proofpoint-Virus-Version: vendor=baseguard engine=ICAP:2.0.272,Aquarius:18.0.987,Hydra:6.0.619,FMLib:17.11.176.26 definitions=2023-11-07_13,2023-11-07_01,2023-05-22_02 X-Proofpoint-Spam-Details: rule=notspam policy=default score=0 mlxlogscore=999 phishscore=0 spamscore=0 mlxscore=0 adultscore=0 malwarescore=0 bulkscore=0 suspectscore=0 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.12.0-2311060000 definitions=main-2311070182 X-Proofpoint-ORIG-GUID: 8om7VioEVbVJLYwRjxkNJX-KMP13eo9T X-Proofpoint-GUID: 8om7VioEVbVJLYwRjxkNJX-KMP13eo9T X-Rspam-User: X-Rspamd-Server: rspam06 X-Rspamd-Queue-Id: 01348140019 X-Stat-Signature: 41txgap19yj65nu6sk5rb6tpbg8ma4ns X-HE-Tag: 1699394397-826883 X-HE-Meta: U2FsdGVkX19fSmp0rMj9p5rn32fRfoDRGrRaakkaL0sDzkdlERqyl+ThgyX2/otw9a6Hjmtx1IduMV8r2YdnGyWgfBMbeM9lMfO3038HXKmYxHHmYzPUawxvSfwjYxZ0XOUcylUm680dm9OEDk1FKh2+srr+S0iSUqHOqgfGUSCcpJiE3blwLZvhed7tRFXCG9mApsB1PsmfbPabZdudmNdzs+NMHEjKVAhmVgOgxbn190bJ73eK7RDBqT2kyjY00f8/duzW7IW2lDZOhI3ShXRUOwFxDkNuzIR+Yx0gbMvW1hud9J4nUVWCiztxFLXtE/luGsk9UdycGwtQjaCdO5fMnsdyxzT9hXQ3ao9ckecwyz0fdFPEYi0gYv1MN+b3pVhwgPU32XcvU3vqPVUjg+mOB8emJyvXinLuGNulVtvrjrXIw9WuuhJ1TveOL8CivGVPoQCpEUrFJaKhlbk5bNSl/ezS4/icM0u4JWZy1NpEscQ3DwfgFN0dYWNfvIqOBgh+pf+igdVNB1XqBR3yo8X0Nj2XZqGbgyTEpHS2Q6r6E0dTnOLOudpCFSEds9rMNrZS8LqieCpQ2eJCUtRpezTMbF+GdDftCgZQyujg63efLqGsLas4xNnRSifLZrcaoZQN8Z8se56ZIwVb8OdYqMLBpC8oJk4UMdw7Lh0TUAOs3zXX42gxbENyCMkGz6XU0hY2C9TjJ2pzSJzFMMW0DQnT6PZYjtR97A/UC9iW/ppLUNYkYQ7yhhRlAKQcECano2ZwYTlb78sFUaio/Ct9hmqHAhGoYp3PvB7TvI1N7V/J5q0McoczE5XlKIyrpg5UEP1jO36Wyj7+vgfL9cct/zKWBh691o4MuAxOy7Eb6UDcbwLWIA5OWTSVJkVYQkknEeZB5Hr71FWjFw55JvG0RkO8ItsP9se3wFmm54exkQhV1K/aSMqkDUcrWA2rP4LwH3iQc2CfCeBpiUTsdYm Na26qcX9 KGucB2fkxKBpftGrwq9ahWoKIv/W9Tt2OK8+NgQL+OhvtISc4v1hA6aVd7l1fVkwY+vTXeg1/Q+y44ywiqv/mPc0BqtBfatfO/r/YbUvOYsNIkmCGhgntSPhSTKiHse8OaAp7hYs5tN3jzyAYmCf8EyoKsRDjbdxz7YODf1un8unaQM4BZRc1+Ai9TZaeaZ0m8IhCq/i0lxRsA8vHNRjGCGH8JRFluVj76xCBdsvt4mi6AqWxCNWD+RLTYJnI0XuFpk0qXahBup5rEnALmq2mQnlB+YgflpXSsAFKXLIk88ocJVCW+Ank0XZDca7XKQGRrInPDWytKzTgsVP3h+7RYBK4PEl0YBZzCwz/IggvqhPp5p9wC+QRkvXvFr6HGE1x9srdqDm90RTODD3NBD4715uhcvQFHQBbZo0UbGNPI4/ohO0EvjJiVYRTFw== X-Bogosity: Ham, tests=bogofilter, spamicity=0.000000, version=1.2.4 Sender: owner-linux-mm@kvack.org Precedence: bulk X-Loop: owner-majordomo@kvack.org List-ID: List-Subscribe: List-Unsubscribe: All users of test_*_tsk_thread_flag() treat the result value as boolean. This is also true for the underlying test_and_*_bit() operations. Change the return type to bool. Originally-by: Thomas Gleixner Signed-off-by: Ankur Arora --- include/linux/sched.h | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/include/linux/sched.h b/include/linux/sched.h index 5f0d7341cb88..12d0626601a0 100644 --- a/include/linux/sched.h +++ b/include/linux/sched.h @@ -2045,17 +2045,17 @@ static inline void update_tsk_thread_flag(struct task_struct *tsk, int flag, update_ti_thread_flag(task_thread_info(tsk), flag, value); } -static inline int test_and_set_tsk_thread_flag(struct task_struct *tsk, int flag) +static inline bool test_and_set_tsk_thread_flag(struct task_struct *tsk, int flag) { return test_and_set_ti_thread_flag(task_thread_info(tsk), flag); } -static inline int test_and_clear_tsk_thread_flag(struct task_struct *tsk, int flag) +static inline bool test_and_clear_tsk_thread_flag(struct task_struct *tsk, int flag) { return test_and_clear_ti_thread_flag(task_thread_info(tsk), flag); } -static inline int test_tsk_thread_flag(struct task_struct *tsk, int flag) +static inline bool test_tsk_thread_flag(struct task_struct *tsk, int flag) { return test_ti_thread_flag(task_thread_info(tsk), flag); } @@ -2070,7 +2070,7 @@ static inline void clear_tsk_need_resched(struct task_struct *tsk) clear_tsk_thread_flag(tsk,TIF_NEED_RESCHED); } -static inline int test_tsk_need_resched(struct task_struct *tsk) +static inline bool test_tsk_need_resched(struct task_struct *tsk) { return unlikely(test_tsk_thread_flag(tsk,TIF_NEED_RESCHED)); }