From patchwork Tue Sep 15 13:55:28 2015 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: hongbo.zhang@freescale.com X-Patchwork-Id: 53659 Return-Path: X-Original-To: linaro@patches.linaro.org Delivered-To: linaro@patches.linaro.org Received: from mail-lb0-f198.google.com (mail-lb0-f198.google.com [209.85.217.198]) by patches.linaro.org (Postfix) with ESMTPS id 6540C22A0D for ; Tue, 15 Sep 2015 14:00:15 +0000 (UTC) Received: by lbbti1 with SMTP id ti1sf57487323lbb.3 for ; Tue, 15 Sep 2015 07:00:14 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:delivered-to:delivered-to:from:to:date :message-id:in-reply-to:references:mime-version:spamdiagnosticoutput :spamdiagnosticmetadata:cc:subject:precedence:list-id :list-unsubscribe:list-archive:list-post:list-help:list-subscribe :content-type:content-transfer-encoding:errors-to:sender :x-original-sender:x-original-authentication-results:mailing-list; bh=ksJpOmJkxTddeprsB1io4U3lIFTmbYJjvlgN4pI1oD4=; b=GzgFkNYe2qhAMuZgBdtjG13iTDrLiptN3HeDtN/24pV/cYtaKNgugdJoq7VcmiNp/F 7pek048o4RD2gGznbYP9LmcV24ilNmRI1Wk5IaC4gUUCXW1mnB81WTcOhp4S064VflKa m5jVnz5Di7orxML95pNfhU8clKMAs2dwMLTzGpAbMWLaY2YOJXijWVPpYCaFXdCQcl10 PHxSO+OgWtYzy/lSdIDYadtek1Bs6sw2zhDw4Jxt7R7NG1ohWxAtUQnKym5k4k803qA0 6mHEB75Y03NMX2vW659NQMLJglprS4pXQGCX1uEjm+DDkCvo30wWM7ozqDUim+Seayps 2GCA== X-Gm-Message-State: ALoCoQnqXE6i6dkd596cvs4l00rk51u15TsjEH7gwJQxtkslzJG+HWDa2bYLaT55bvbRY9UlKGtA X-Received: by 10.180.188.211 with SMTP id gc19mr820718wic.6.1442325614314; Tue, 15 Sep 2015 07:00:14 -0700 (PDT) X-BeenThere: patchwork-forward@linaro.org Received: by 10.152.37.97 with SMTP id x1ls321128laj.7.gmail; Tue, 15 Sep 2015 07:00:14 -0700 (PDT) X-Received: by 10.112.140.232 with SMTP id rj8mr20839606lbb.2.1442325614085; Tue, 15 Sep 2015 07:00:14 -0700 (PDT) Received: from mail-lb0-f170.google.com (mail-lb0-f170.google.com. [209.85.217.170]) by mx.google.com with ESMTPS id p10si6695301laf.142.2015.09.15.07.00.14 for (version=TLSv1.2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Tue, 15 Sep 2015 07:00:14 -0700 (PDT) Received-SPF: pass (google.com: domain of patch+caf_=patchwork-forward=linaro.org@linaro.org designates 209.85.217.170 as permitted sender) client-ip=209.85.217.170; Received: by lbcao8 with SMTP id ao8so85527170lbc.3 for ; Tue, 15 Sep 2015 07:00:14 -0700 (PDT) X-Received: by 10.152.23.199 with SMTP id o7mr19864687laf.76.1442325613919; Tue, 15 Sep 2015 07:00:13 -0700 (PDT) X-Forwarded-To: patchwork-forward@linaro.org X-Forwarded-For: patch@linaro.org patchwork-forward@linaro.org Delivered-To: patch@linaro.org Received: by 10.112.59.35 with SMTP id w3csp1822148lbq; Tue, 15 Sep 2015 07:00:12 -0700 (PDT) X-Received: by 10.107.34.18 with SMTP id i18mr34438048ioi.149.1442325612716; Tue, 15 Sep 2015 07:00:12 -0700 (PDT) Received: from lists.linaro.org (lists.linaro.org. [54.225.227.206]) by mx.google.com with ESMTP id y1si12236450igl.74.2015.09.15.07.00.11; Tue, 15 Sep 2015 07:00:12 -0700 (PDT) Received-SPF: pass (google.com: domain of lng-odp-bounces@lists.linaro.org designates 54.225.227.206 as permitted sender) client-ip=54.225.227.206; Received: by lists.linaro.org (Postfix, from userid 109) id 23DD661A32; Tue, 15 Sep 2015 14:00:11 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on ip-10-142-244-252 X-Spam-Level: X-Spam-Status: No, score=-1.9 required=5.0 tests=BAD_ENC_HEADER,BAYES_00, RCVD_IN_DNSWL_NONE,RCVD_IN_MSPIKE_H2,SPF_HELO_PASS,URIBL_BLOCKED autolearn=disabled version=3.4.0 Received: from [127.0.0.1] (localhost [127.0.0.1]) by lists.linaro.org (Postfix) with ESMTP id 374FD62CD9; Tue, 15 Sep 2015 13:57:03 +0000 (UTC) X-Original-To: lng-odp@lists.linaro.org Delivered-To: lng-odp@lists.linaro.org Received: by lists.linaro.org (Postfix, from userid 109) id 97D6262CBA; Tue, 15 Sep 2015 13:56:41 +0000 (UTC) Received: from na01-by2-obe.outbound.protection.outlook.com (mail-by2on0119.outbound.protection.outlook.com [207.46.100.119]) by lists.linaro.org (Postfix) with ESMTPS id 8223C61CFE for ; Tue, 15 Sep 2015 13:56:03 +0000 (UTC) Received: from BY2PR03CA004.namprd03.prod.outlook.com (10.255.93.21) by BN3PR0301MB1265.namprd03.prod.outlook.com (10.161.209.145) with Microsoft SMTP Server (TLS) id 15.1.268.17; Tue, 15 Sep 2015 13:56:01 +0000 Received: from BY2FFO11FD053.protection.gbl (10.255.93.4) by BY2PR03CA004.outlook.office365.com (10.255.93.21) with Microsoft SMTP Server (TLS) id 15.1.268.17 via Frontend Transport; Tue, 15 Sep 2015 13:56:01 +0000 Received-SPF: Fail (protection.outlook.com: domain of freescale.com does not designate 192.88.158.2 as permitted sender) receiver=protection.outlook.com; client-ip=192.88.158.2; helo=az84smr01.freescale.net; Received: from az84smr01.freescale.net (192.88.158.2) by BY2FFO11FD053.mail.protection.outlook.com (10.1.15.190) with Microsoft SMTP Server (TLS) id 15.1.262.18 via Frontend Transport; Tue, 15 Sep 2015 13:55:57 +0000 Received: from hongbo.ap.freescale.net (hongbo.ap.freescale.net [10.193.20.3]) by az84smr01.freescale.net (8.14.3/8.14.0) with ESMTP id t8FDtiXS031670; Tue, 15 Sep 2015 06:55:53 -0700 From: To: Date: Tue, 15 Sep 2015 21:55:28 +0800 Message-ID: <1442325342-13806-4-git-send-email-hongbo.zhang@freescale.com> X-Mailer: git-send-email 1.9.1 In-Reply-To: <1442325342-13806-1-git-send-email-hongbo.zhang@freescale.com> References: <1442325342-13806-1-git-send-email-hongbo.zhang@freescale.com> X-EOPAttributedMessage: 0 X-Microsoft-Exchange-Diagnostics: 1; BY2FFO11FD053; 1:zhYgC/h1uYzNeqSWewOOwpxFLSZ48Is1bwfAnzcTbVfZNV5lPJpSNCFWkegi17rxed1DsEdR9qb1fu3OaLbEggKuGVk71RKzxtao4LI7lYlA1tRVxKUB7RlIgA6I1c5WSegt2GHs7r1/jBdt3dB8Y3N+pjAlIBJ0wtQNU2plFjQswnubReihUWmrEBvswjuHxJEIM6BrsSTd3nhWqkNGXJnjfaMsbAe9Mz5B++X3ctWY81cr83VXyrxMX7yQ8X/nR/1K2Q1DaErGrmzSpMnh07we3/ZTf6crylARww+RBH1oTKrx1xSxcczL/QeQ2FtL74fo+mdrZgOudKQvjysBsgwhI2wsA4xSwaOvp/dNyWlo7+L471od42c5BMZlJL6/3AIHDEXAYLZ+j+dWOX8Qsw== X-Forefront-Antispam-Report: CIP:192.88.158.2; CTRY:US; IPV:NLI; EFV:NLI; SFV:NSPM; SFS:(10019020)(6009001)(2980300002)(1110001)(1109001)(339900001)(189002)(199003)(5003940100001)(48376002)(77156002)(36756003)(85426001)(5001860100001)(77096005)(5007970100001)(229853001)(106466001)(4001540100001)(47776003)(68736005)(62966003)(64706001)(92566002)(50466002)(81156007)(97736004)(11100500001)(5001830100001)(5001960100002)(19580395003)(50986999)(33646002)(76176999)(105606002)(86362001)(189998001)(110136002)(87936001)(104016003)(2950100001)(86152002)(2351001)(6806004)(69596002)(46102003)(50226001)(19580405001)(217873001); DIR:OUT; SFP:1102; SCL:1; SRVR:BN3PR0301MB1265; H:az84smr01.freescale.net; FPR:; SPF:Fail; PTR:InfoDomainNonexistent; MX:1; A:1; LANG:en; MIME-Version: 1.0 X-Microsoft-Exchange-Diagnostics: 1; BN3PR0301MB1265; 2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OQmTTWFqOxoBFztZa4SBtbaqzlYMWGCygpUDEkFCNBABdU=; 4:uU9sdUFDyLmRGVM7FO3h8aRLyjtIxPIHLtb0LMysN4b4yBjqNbyR5XW9x70s3Cxe3USao9T7BnWsr8tC437L5lIT4ggMEKsTw1J2p88waQstXtZLai/VAuDhqPisIPua0VPAA++aAfGtfNT23sij6D6jj7NX3xohzsQNVA5aLOMi42h38/2RsJHBhiIOPT/yAiHbnuHAL025/TjedHTo26yFZA5ZzxqE4EumFzitOAGA6Q84tqAVexCrbj8NQaE0Yy3mWWxc+/lgll3Jk5jVVUANdekkgXH3PL4siTz00LpuQP4R0MY7kc55/7zZhj/0dEG52exjBb+4fKmnwepqsg== X-Microsoft-Antispam-PRVS: X-Exchange-Antispam-Report-Test: UriScan:; X-Exchange-Antispam-Report-CFA-Test: BCL:0; PCL:0; RULEID:(601004)(5005006)(8121501046)(520078)(3002001); SRVR:BN3PR0301MB1265; BCL:0; PCL:0; RULEID:; SRVR:BN3PR0301MB1265; X-Forefront-PRVS: 070092A9D3 X-Microsoft-Exchange-Diagnostics: =?us-ascii?Q?1; BN3PR0301MB1265; 23:BgH2VRt7h//z/7bBFUpjrc/0sesfRGOa4t9jKe5?= =?us-ascii?Q?ZguYEvboJznymORuvOEhg+2Gcfq5JE1eJE8tBnmyNKN6EoDmlsIuuOKyKnX8?= =?us-ascii?Q?1qIsFLV+VC44DEIb1DodACKyMqWiZr2AslPHm5HVj6XZPo5LCcB2r3ZSYRNC?= =?us-ascii?Q?2ZGuCkPXs+OS7uQiO7azBloaqYaHfzQg2U7Rn5IczN4dEJDR6Rp3hdPNATC5?= =?us-ascii?Q?33jvnIGPLo60JkQKiH8UHXdxyu99jR/hvmkKVj5O07HHG1CE8/XRdnXdjCHU?= =?us-ascii?Q?Rz8Nw3NOIb8jsheMNQIbulLzyN6Ign/kOha0be/HT31McnX+9LNLHXyN36Zd?= =?us-ascii?Q?w1l6jy4GR5GBgiMiDWAqfav3CcVD9lj4mowIJpPn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LBILcWeLjmaxP2QsHEpNwRjVQr+9YJuL?= X-Microsoft-Exchange-Diagnostics: 1; BN3PR0301MB1265; 5:inmt6Iw3bPt8YNpeor0tLqLGhdpTwMXUZUF1ZLO8XQOxdRM5F65I7+ksg0UigiljgsNaRerOBovNIEfC6FPs66zmfSETo1DP0m/RwGQgf7hbrTvUAiGqpjf0ogDFNax7qKIM/SHCbErf4c+z5C63Wg==; 24:gOpP5ANPVpu70V0ZBh/PHrGti4EtuTJ7iFcrKMK1kVlkAxmnpKZV7TTD0G8XpUMaX59fIVQmdmUC5lBMpOaiiBU+qmb2JsfRjHcB6lcnTlU=; 20:LVANMRoG/v1gg7ERMae5rM8EKHazV6qkqX6Y+p71d7uBOTKCaCmUctxLFAw3uZgowJWGTlAx1XhR4tn04fN3xA== SpamDiagnosticOutput: 1:23 SpamDiagnosticMetadata: NSPM X-OriginatorOrg: freescale.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 15 Sep 2015 13:55:57.7760 (UTC) X-MS-Exchange-CrossTenant-Id: 710a03f5-10f6-4d38-9ff4-a80b81da590d X-MS-Exchange-CrossTenant-OriginalAttributedTenantConnectingIp: TenantId=710a03f5-10f6-4d38-9ff4-a80b81da590d; Ip=[192.88.158.2]; Helo=[az84smr01.freescale.net] X-MS-Exchange-CrossTenant-FromEntityHeader: HybridOnPrem X-MS-Exchange-Transport-CrossTenantHeadersStamped: BN3PR0301MB1265 X-Topics: patch Cc: petri.savolainen@nokia.com, stuart.haslam@arm.com Subject: [lng-odp] [API NEXT PATCH v5 03/17] api: sysinfo: move CPU model API to cpu.h X-BeenThere: lng-odp@lists.linaro.org X-Mailman-Version: 2.1.16 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: , List-Help: , List-Subscribe: , Errors-To: lng-odp-bounces@lists.linaro.org Sender: "lng-odp" X-Removed-Original-Auth: Dkim didn't pass. X-Original-Sender: patch@linaro.org X-Original-Authentication-Results: mx.google.com; spf=pass (google.com: domain of patch+caf_=patchwork-forward=linaro.org@linaro.org designates 209.85.217.170 as permitted sender) smtp.mailfrom=patch+caf_=patchwork-forward=linaro.org@linaro.org Mailing-list: list patchwork-forward@linaro.org; contact patchwork-forward+owners@linaro.org X-Google-Group-Id: 836684582541 From: Hongbo Zhang This patch moves odp_sys_cpu_model_str() to cpu.h, all the calling functions will be updated in later separate patch. Signed-off-by: Hongbo Zhang --- include/odp/api/cpu.h | 9 +++++++++ include/odp/api/system_info.h | 7 ------- platform/linux-generic/odp_system_info.c | 2 +- 3 files changed, 10 insertions(+), 8 deletions(-) diff --git a/include/odp/api/cpu.h b/include/odp/api/cpu.h index c389093..78c3ffc 100644 --- a/include/odp/api/cpu.h +++ b/include/odp/api/cpu.h @@ -44,6 +44,15 @@ int odp_cpu_id(void); int odp_cpu_count(void); /** + * CPU model name of this CPU + * + * Returns the CPU model name of this CPU. + * + * @return Pointer to CPU model name string + */ +const char *odp_cpu_model_str(void); + +/** * @} */ diff --git a/include/odp/api/system_info.h b/include/odp/api/system_info.h index e55ff6d..1cd883f 100644 --- a/include/odp/api/system_info.h +++ b/include/odp/api/system_info.h @@ -45,13 +45,6 @@ uint64_t odp_sys_huge_page_size(void); uint64_t odp_sys_page_size(void); /** - * CPU model name - * - * @return Pointer to CPU model name string - */ -const char *odp_sys_cpu_model_str(void); - -/** * Cache line size in bytes * * @return CPU cache line size in bytes diff --git a/platform/linux-generic/odp_system_info.c b/platform/linux-generic/odp_system_info.c index 83226f8..ed6b515 100644 --- a/platform/linux-generic/odp_system_info.c +++ b/platform/linux-generic/odp_system_info.c @@ -389,7 +389,7 @@ uint64_t odp_sys_page_size(void) return odp_global_data.system_info.page_size; } -const char *odp_sys_cpu_model_str(void) +const char *odp_cpu_model_str(void) { return odp_global_data.system_info.model_str[0]; }