Received: by 2002:a05:6a10:1a4d:0:0:0:0 with SMTP id nk13csp1847036pxb; Wed, 9 Feb 2022 05:52:58 -0800 (PST) X-Google-Smtp-Source: ABdhPJxG/tJbLO4uOwDsYOk6fzPubVnKTcXGSbTYJVTElvcXNLFB2UlN1vNsyCoen6rLIP4aoBLA X-Received: by 2002:a05:6a00:244e:: with SMTP id d14mr2510295pfj.45.1644414778016; Wed, 09 Feb 2022 05:52:58 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1644414778; cv=pass; d=google.com; s=arc-20160816; b=pPeuzmnEon28B9GB5BIMtW4x9rezzCIG5l5VPcsM8J+CFsZaYjBmea01re9gnajcNS CMGbJp2iSRC4RDAPwzJv7XpU6EoFsQpRk8DK6JAdEvVMLNYBQHltWzUIIS0ea9P+Ks9C Jq4YHa8Gi4JjUb4X/S/VAFJmHT04sRzFGf7+MlneT6GAMZ1q6WcyyRRl9URvSbqADORp o/8Q0sc4FZNQ8wMOayo8DGUnQAwd/S0tRzhPROu84O/q3Y7hZs0NXtkY0Yk1m3B2I0vl sf2r1GVfCL+f3Cd2PAscuXPVMWHare7R3T39hsIH851ex+eyD+IIjHT23GJsCoO0M8pD rQ1Q== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:mime-version:message-id:date:subject:cc:to:from :dkim-signature; bh=7EMeIToNUcDG98+WDxBUEUpyIpe0q47jndIFve+3ivE=; b=TzbszjI6544yN6G9438QvK8TukXEbjxly8/N36Te24wQD+9+Gd+oUkD+Q7VXmNUxLZ JKdh1Fuq7rx8QkfXXOXxVvTQLuJLMpJofYUUXt5zmeOuk/kvFwcL2GN3CiaEeeXHJWOH 8iquOefGrFvSSUSv7twa7ZJLcUZp4raMR3tlQGxO+dwNC4NBkJbWn9iZFCJfbS9MBctc ube/Yy8X8fGkZ2JRndbv/KIj3NrgOex2NzKyXKs8lfDRdiITq6pqyIvfYiw3SGpEw35t gpoohfLpsSXS1SHfA0/0m03HOYwm03DQZEJr1yjJxrQZfkCFMlXXyzpud5v0A5VrRUin XWWQ== ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@vivo0.onmicrosoft.com header.s=selector2-vivo0-onmicrosoft-com header.b=po7RzDwI; arc=pass (i=1); spf=softfail (google.com: domain of transitioning linux-kernel-owner@vger.kernel.org does not designate 23.128.96.19 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=vivo.com Return-Path: Received: from lindbergh.monkeyblade.net (lindbergh.monkeyblade.net. [23.128.96.19]) by mx.google.com with ESMTPS id i11si6420254pla.584.2022.02.09.05.52.51 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 09 Feb 2022 05:52:58 -0800 (PST) Received-SPF: softfail (google.com: domain of transitioning linux-kernel-owner@vger.kernel.org does not designate 23.128.96.19 as permitted sender) client-ip=23.128.96.19; Authentication-Results: mx.google.com; dkim=pass header.i=@vivo0.onmicrosoft.com header.s=selector2-vivo0-onmicrosoft-com header.b=po7RzDwI; arc=pass (i=1); spf=softfail (google.com: domain of transitioning linux-kernel-owner@vger.kernel.org does not designate 23.128.96.19 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=vivo.com Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by lindbergh.monkeyblade.net (Postfix) with ESMTP id 884C5E0A445E; Wed, 9 Feb 2022 02:32:31 -0800 (PST) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S241877AbiBIIfp (ORCPT + 99 others); Wed, 9 Feb 2022 03:35:45 -0500 Received: from gmail-smtp-in.l.google.com ([23.128.96.19]:56610 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S233935AbiBIIfl (ORCPT ); Wed, 9 Feb 2022 03:35:41 -0500 Received: from APC01-PSA-obe.outbound.protection.outlook.com (mail-psaapc01on2129.outbound.protection.outlook.com [40.107.255.129]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 164EBC03E911 for ; Wed, 9 Feb 2022 00:35:37 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=QeVmF4hMYkEiroPQL94EHYnxQwdhXVzxdaDs5/v9knOg04itgwgFkFVk+CsibimbWOqAUgkU4JB5JPpaK5PRiMHIexV5VR323MtDbNDUEBXU6KOVszU9SGxy4JGLimgfRJlQTa5iQkQD1z/y0OT++Z/rlKV2Ke4075G2qC3Y7xvfKu8RzFzDkuNdFzo8yEb+uV3e2TisUd5WCReECafKMWYABbgFdEPxO5k+aAOXE4f8vEo4LSKV22B8WyFAUOU3VFKqcjFqcEp/4rTA/I+2DjyBJSlOLxMKqd/t6rdCaX+6mDCOcMUmnhFMqqFcbxHG7xX+AYMv4Vg5LWFqIF7QzQ== 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=7EMeIToNUcDG98+WDxBUEUpyIpe0q47jndIFve+3ivE=; b=EyoM8dsEo2HGO5Mt3t8+2lGiBJkslyWewbjbWKtwTn9UEekf7pg/JCy+MUH8YLWIQyWg3q/mTs87V+8ZyyEvQBZhx9JnjWHP8kwSumvCpTYRDFgmpmfA3XRBglK5RA1QF1hVQt73OUEPbTfyNJqd2osWKrDJT0J6Rn+v60v9pOgXODNeeZa2vf4szHW6Ys/22K2aWoWfi+PQJVjj8W/6p0TZtIkC/b/5KU2ynuIZ8yxKanu+kSWGQuH6lpne8mjGE4AqQ6axB8CXTCRBBOOL4jFtNKPbQ0/bzN1iv/cfFb//iGE3WdlgWK9osfnA63k7XGmTqp5uPdh7g500/u+1DQ== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=none; dmarc=none; dkim=none; arc=none DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=vivo0.onmicrosoft.com; s=selector2-vivo0-onmicrosoft-com; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=7EMeIToNUcDG98+WDxBUEUpyIpe0q47jndIFve+3ivE=; b=po7RzDwIsHTUpeFL5GVkTfhwZMMT/7melL4jmfZNpPQeT2vbrBsNL+tmBdUlBYHOqUYu+A5ohvIp/5mG4keYACRooJMSwlBb2E5+siTnwhBE49yl7ijCC2AI7ZkaHAegFJ0R3efbLpEYtUyEEFIaBBk1ngfQG9hW75Xxf94E2rg= Authentication-Results: dkim=none (message not signed) header.d=none;dmarc=none action=none header.from=vivo.com; Received: from SL2PR06MB3082.apcprd06.prod.outlook.com (2603:1096:100:37::17) by KL1PR0601MB4068.apcprd06.prod.outlook.com (2603:1096:820:2a::10) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.4975.11; Wed, 9 Feb 2022 08:35:05 +0000 Received: from SL2PR06MB3082.apcprd06.prod.outlook.com ([fe80::80b4:e787:47a9:41bb]) by SL2PR06MB3082.apcprd06.prod.outlook.com ([fe80::80b4:e787:47a9:41bb%4]) with mapi id 15.20.4975.011; Wed, 9 Feb 2022 08:35:05 +0000 From: Qing Wang To: Anatolij Gustschin , Michael Ellerman , Benjamin Herrenschmidt , Paul Mackerras , linuxppc-dev@lists.ozlabs.org, linux-kernel@vger.kernel.org Cc: Wang Qing Subject: [PATCH] powerpc: delete redundant conversion Date: Wed, 9 Feb 2022 00:34:55 -0800 Message-Id: <1644395696-3545-1-git-send-email-wangqing@vivo.com> X-Mailer: git-send-email 2.7.4 Content-Type: text/plain X-ClientProxiedBy: HK2PR03CA0048.apcprd03.prod.outlook.com (2603:1096:202:17::18) To SL2PR06MB3082.apcprd06.prod.outlook.com (2603:1096:100:37::17) MIME-Version: 1.0 X-MS-PublicTrafficType: Email X-MS-Office365-Filtering-Correlation-Id: 9abae3bc-77b2-4208-397c-08d9eba71245 X-MS-TrafficTypeDiagnostic: KL1PR0601MB4068:EE_ X-Microsoft-Antispam-PRVS: X-MS-Oob-TLC-OOBClassifiers: OLM:510; X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: aBYWf444cxAiUJTaR4tzFYIJXSgBiM3J09qkTWzE0GCAiKiIJ94DaqJAV1ec3ZDfeB7CTJ1wiFwWFKHtcLdC0IInTa8uOhYUNT2AomfGBiovgEMvmIHh/dFfN7+Kfw508WP/fWXaLGmvwip7rhvhmz58/Io2cvdYrIGNExbt+uuMcxWXnrt9/B9NCHGUy7zpePzy2rWU46/2pBvcOOb9V/zrNCDJfcK9yC8uQrtz1qinmOs/dB784RRRurc2A+gUKZu9bWsO70kRbRhjhMhOdtW2T/FHWyfun6muTnPy3Ujvu47Be3DCGgQCKvg3fzZAg3btzz1J/UiqronaZgMjaQxCWDjoPsi6uBp1YffEJFeiP2hoDNP567N3BJRfACAed04z53RZwET6H5xOsT6d6i1sZ3EvSoeWGN096YO94ZSfKdYkgsP2drce1HGDLv5YgwwLoZpX6xWYjNPGjg/J087J3JwXIBb+RnnJtzVKT/le2LI3TcRcA4uyh7Q9KQF6nQFucpQojbv9LswycHsLFP5IWzHfWpBEI/KNRfYc/i12o8A0tqHHD1nkSmifcjqpxpNV6xK26MqzuIXZAfpwsQ+xQqowNmFQXcex+fNLoZlGix75EJ4R9Fy8rrnZH+TvcsNWACCIU9HqJI3zNK+eLzk44qzS9dhOuvHu3EfaxhCAJUfhfETVDi5ZxuizV1IHKsMV/V/D7U5zE3grwhwZww== X-Forefront-Antispam-Report: CIP:255.255.255.255;CTRY:;LANG:en;SCL:1;SRV:;IPV:NLI;SFV:NSPM;H:SL2PR06MB3082.apcprd06.prod.outlook.com;PTR:;CAT:NONE;SFS:(13230001)(4636009)(366004)(86362001)(38100700002)(186003)(38350700002)(6486002)(83380400001)(508600001)(4744005)(2906002)(8936002)(316002)(107886003)(36756003)(110136005)(2616005)(26005)(4326008)(5660300002)(6666004)(6512007)(66476007)(66946007)(66556008)(8676002)(52116002)(6506007);DIR:OUT;SFP:1102; X-MS-Exchange-AntiSpam-MessageData-ChunkCount: 1 X-MS-Exchange-AntiSpam-MessageData-0: =?us-ascii?Q?gaZW8FiVYjObH/rQC6IaKpISZkZRGjX/ZavBtIvnW0DkZFjdxdRmklepclq0?= =?us-ascii?Q?wO9+hboL066+xHIcsWFnpijlddqA2MJ8W2XGiy54EgBGPBQOBkaMqL9ZBTvB?= =?us-ascii?Q?8RYQszaw953VRjOga7D0H6y7fjNNNpf/SxGfzWidHq/2f4ANAn3aAqqMdPk8?= =?us-ascii?Q?FhUFO2z76rn4zx4yOnIB9YOFmtyjcRWBS2Ben9qAm/52QBrIR27VJ5yjfpYI?= =?us-ascii?Q?SsZzQhvuSea8fd0EqJUaTMwSPeR6HrG4Zfh/naKEmMM57FhM4DItGHxGlKG7?= =?us-ascii?Q?xquGkBJrGSlBq3LP/Ham5Ch0THE0Q86KpR5kJxhv+dsGKoqPymu70G3Z6lM/?= =?us-ascii?Q?GLmKgZLSc6QSpCdYOQgnbEpMIk91Js1VVS8uGcVTFse3ROHniu0oS/FRcUiU?= =?us-ascii?Q?Ph9Suoh+DDF9wnUjfVUl8G9exWPB6qhbZMlK2AAu5604jkkXoFO3IqsDmItx?= =?us-ascii?Q?39BeAAPW10jJYkixV7PyFAxDiZEwJ2M6imU4iD77HvO8STi0HUj/0MRvh95q?= =?us-ascii?Q?1rBvhGPpmMYcr6aNtC1VlmQZyFbmLsQiaSXaucKOKrSPXBEpA+dJHzFjDtV1?= =?us-ascii?Q?frDwVYX7W4tf4MmEI5IyiqF7kXNdtqhkWdHbVA5II34R6v060oiq1cedH88o?= =?us-ascii?Q?/cQcZ5e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=?us-ascii?Q?bNSghYhRw2mcLmU7xsWgMKpLmT0UbFa2pUP8sUOFjcLwTBLx64HniUW3by4B?= =?us-ascii?Q?mrvDDdMksGDp6za67Kazd6M=3D?= X-OriginatorOrg: vivo.com X-MS-Exchange-CrossTenant-Network-Message-Id: 9abae3bc-77b2-4208-397c-08d9eba71245 X-MS-Exchange-CrossTenant-AuthSource: SL2PR06MB3082.apcprd06.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 09 Feb 2022 08:35:05.2290 (UTC) X-MS-Exchange-CrossTenant-FromEntityHeader: Hosted X-MS-Exchange-CrossTenant-Id: 923e42dc-48d5-4cbe-b582-1a797a6412ed X-MS-Exchange-CrossTenant-MailboxType: HOSTED X-MS-Exchange-CrossTenant-UserPrincipalName: ckUbdtBxnjJknpamgceBubVs4jSzDAZStKFZrzBiE2qjFjpkJuviXtDqTNhD2+WwY03q0krjiSvAWakB3CnaGg== X-MS-Exchange-Transport-CrossTenantHeadersStamped: KL1PR0601MB4068 X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,HEADER_FROM_DIFFERENT_DOMAINS,MAILING_LIST_MULTI,RDNS_NONE, SPF_HELO_NONE,T_SCC_BODY_TEXT_LINE autolearn=no autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org From: Wang Qing do_div() does a 64-by-32 division No need to transform gpt->ipb_freq to u64 Signed-off-by: Wang Qing --- arch/powerpc/platforms/52xx/mpc52xx_gpt.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/arch/powerpc/platforms/52xx/mpc52xx_gpt.c b/arch/powerpc/platforms/52xx/mpc52xx_gpt.c index f862b48..0cb2482 --- a/arch/powerpc/platforms/52xx/mpc52xx_gpt.c +++ b/arch/powerpc/platforms/52xx/mpc52xx_gpt.c @@ -502,7 +502,7 @@ u64 mpc52xx_gpt_timer_period(struct mpc52xx_gpt_priv *gpt) if (prescale == 0) prescale = 0x10000; period = period * prescale * 1000000000ULL; - do_div(period, (u64)gpt->ipb_freq); + do_div(period, gpt->ipb_freq); return period; } EXPORT_SYMBOL(mpc52xx_gpt_timer_period); -- 2.7.4