From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from dpdk.org (dpdk.org [92.243.14.124]) by dpdk.space (Postfix) with ESMTP id 52B84A00E6 for ; Mon, 15 Apr 2019 18:36:48 +0200 (CEST) Received: from [92.243.14.124] (localhost [127.0.0.1]) by dpdk.org (Postfix) with ESMTP id BB2B31B276; Mon, 15 Apr 2019 18:36:46 +0200 (CEST) Received: from mail-pl1-f171.google.com (mail-pl1-f171.google.com [209.85.214.171]) by dpdk.org (Postfix) with ESMTP id 785BB1B20D for ; Mon, 15 Apr 2019 18:36:44 +0200 (CEST) Received: by mail-pl1-f171.google.com with SMTP id b3so8830020plr.7 for ; Mon, 15 Apr 2019 09:36:44 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=networkplumber-org.20150623.gappssmtp.com; s=20150623; h=date:from:to:cc:subject:message-id:in-reply-to:references :mime-version:content-transfer-encoding; bh=+qkGxADZUcqkqOctROV4O7Ntf7AJXmrBm02TLFGkINw=; b=qrr6BSN/fCZ/zVKV7sZkO0a0HkM24yQ/OiDUDoHA+ymMi0zozZk17u+zGMIe+IoZ25 IOdqImFENDbffQXlYrEGoqiO3Lofb3MGA0FMw8gV0d2T0y8dAQEpyC+LIpU4Q5UsvWP0 iDb37MnHPWK3d0yGqmKQv17EGonKkMlstH/kxiGxnQN7fUFbpMgvcZ+WuIZ3168uNwZt 7MEcZEFs6NpvXlevnjrDYpwUYP2japwIJmiqVF8E7a7TuP++lTPEvBckhRWZ/Z7nYoTw Ejt5q55ITISosNa7rczYVmjwn9dfysIwThcT/K36qNV3Qdq/b92lJDZOCEBEcHwfg5CT U/fg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:date:from:to:cc:subject:message-id:in-reply-to :references:mime-version:content-transfer-encoding; bh=+qkGxADZUcqkqOctROV4O7Ntf7AJXmrBm02TLFGkINw=; b=oRqz5UYsk8W7PaD2ZGCWIYT8UDFu6WZUC7cFC6Fl+o7KpCh2k8l4Np3XuYJ/v8mt3a QkME06WEXRKr8WojulfKBhkdKd5TOrW03cHPMh6j5Tbrodn6IYubCIhVcDer26prXFcF mmJCBhkB1bdZxInQXc+aofdpRz1Vrh9Ch+Hds2+PJ14c3urKVkcppYwvG3svjIQLXEKr beSQMpgJyDokuWED4pArxMcoGiogd0G4Ql9qT4Slcuc8r49uYp/5iNRFamzDOwOnp4uL SOo1P3s7ozCNlPcYtoIMdnW3/OiwhY8Q0hbugyq7X2kw872Z7HNHGYNQgxKs9+bN9NfI pepA== X-Gm-Message-State: APjAAAW4C1uuY5/1SUHjeJB8yI58cKBS6hffTOMZtL3FCgjinucyfdnC 5zljV++p41Bnvu06W6HiSMwCpw== X-Google-Smtp-Source: APXvYqzx3O2kNSaglVQrg8S79xcP2WXkwBJZ75Gn7fkosjzl2dpyL+gQry1UoNFIokTj0teyX5FZrA== X-Received: by 2002:a17:902:681:: with SMTP id 1mr77683554plh.31.1555346203507; Mon, 15 Apr 2019 09:36:43 -0700 (PDT) Received: from shemminger-XPS-13-9360 (204-195-22-127.wavecable.com. [204.195.22.127]) by smtp.gmail.com with ESMTPSA id y20sm51557601pfe.188.2019.04.15.09.36.43 (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Mon, 15 Apr 2019 09:36:43 -0700 (PDT) Date: Mon, 15 Apr 2019 09:36:40 -0700 From: Stephen Hemminger To: "Liang, Ma" Cc: Lee Daly , david.hunt@intel.com, dev@dpdk.org, stable@dpdk.org Message-ID: <20190415093640.7ef236c8@shemminger-XPS-13-9360> In-Reply-To: <20190415161110.GA17469@sivswdev09.ir.intel.com> References: <1555084647-75896-1-git-send-email-lee.daly@intel.com> <20190415161110.GA17469@sivswdev09.ir.intel.com> MIME-Version: 1.0 Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: 7bit Subject: Re: [dpdk-dev] [PATCH] lib/librte_power: set new frequecy on turbo_disable X-BeenThere: dev@dpdk.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: DPDK patches and discussions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: dev-bounces@dpdk.org Sender: "dev" Message-ID: <20190415163640.0uKalVrcvcUBBv75BtUWLvtsykHqOOrl3WEn-4KLmaU@z> On Mon, 15 Apr 2019 17:11:10 +0100 "Liang, Ma" wrote: > > pi->turbo_enable = 0; > > > > - > > + if ((pi->turbo_available) && (pi->curr_idx <= 1)) { You (don't) need (so many) parenthesis.