From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751457AbdL0AnB (ORCPT ); Tue, 26 Dec 2017 19:43:01 -0500 Received: from mail-ot0-f169.google.com ([74.125.82.169]:46232 "EHLO mail-ot0-f169.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751083AbdL0Am7 (ORCPT ); Tue, 26 Dec 2017 19:42:59 -0500 X-Google-Smtp-Source: ACJfBovQiCwHbqXUcPBu5L9Kh5hCY2OPzNFQedV7Q8AjLaP5MvRUub2eJj6X92/S41Xz/HMyqywYgC/YeiSxnMr1Ew4= MIME-Version: 1.0 In-Reply-To: <20171226072626.GA4153@gaurav.jindal> References: <20171226072626.GA4153@gaurav.jindal> From: "Rafael J. Wysocki" Date: Wed, 27 Dec 2017 01:42:58 +0100 X-Google-Sender-Auth: XbAZV9cWxeBZbKPS-QIkd6wMnBc Message-ID: Subject: Re: [PATCH]cpuidle: preventive check in cpuidle_select against crash To: gaurav jindal Cc: "Rafael J. Wysocki" , Daniel Lezcano , Linux PM , Linux Kernel Mailing List Content-Type: text/plain; charset="UTF-8" Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Tue, Dec 26, 2017 at 8:26 AM, gaurav jindal wrote: > When selecting the idle state using cpuidle_select, there is no > check on cpuidle_curr_governor. In cpuidle_switch_governor, > cpuidle_currr_governor can be set to NULL to specify "disabled". How exactly?