From patchwork Tue Jul 23 06:14:08 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Viresh Kumar X-Patchwork-Id: 169481 Delivered-To: patch@linaro.org Received: by 2002:a92:4782:0:0:0:0:0 with SMTP id e2csp8446859ilk; Mon, 22 Jul 2019 23:14:49 -0700 (PDT) X-Google-Smtp-Source: APXvYqwHLzu7ac8V7nHgI5l+5vTETQjSZ5/Q+JpLiOHn0X7f3QAughZBfNtYviAPTB81FkK3fz3G X-Received: by 2002:a62:198d:: with SMTP id 135mr4051949pfz.169.1563862489492; Mon, 22 Jul 2019 23:14:49 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1563862489; cv=none; d=google.com; s=arc-20160816; b=reokr4EltqwKATNGTAoYVFTNcuFrjxhOfNut8vxhKty/iiVdL91YcNzhJQ9Bc+cjhp fRo2WGFrga/M24QI5mCe7fqbYrLThXm6ZN/eGZy09dX6X2sUxP3gEAbxP4uba957T03b ypolhFAY26xp/xh1oVr+ACwreG7mIGbjLs+DmP/5aPXwQrXcbKiKBBRHASeJSav4kuQM McEjSginJ6245iHNkfgLbqlmATAsP+fE3uVHsrv7sKT0pq0RHwEC8D/H+TcikH610VLr aM9/D/pPbMwD0yKk0D8j7RacMfhwlq125CCp0lnmWWvwcy0KaeMTCdOZi46Ozbwx7Dg9 RLeQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding:mime-version :references:in-reply-to:message-id:date:subject:cc:to:from :dkim-signature; bh=rUdeKFVKj/j46aY/YcoOji4W0Ij6fg/KFJvYkeK7wzw=; b=rRldwiLyfimw8sAeCbwm/cBx/xEwP87dDOKK9N9M6Mtn0Ft9lnYr723A9gaVWQDtew QZWcErbpzgR70CRb5XdKl2a0mdy5QQhmzuy1Ah5CUj++S1ZEb0oL81T1eU3VBKdGmMww P55jjgClij2anbl1zM97riMIF8b9hbb+g/TdGLcJ2uk8NkamfWS/bxGQgL9KoFgL8pO/ NGr50kMbA0WBBR5HyF0iLrgyalrJOvOmC7gFMuPnLd2V1x6FYpa5IE718D3DebBD42wF kbhCOEH+JmrCHlkhUTQQG+goreW1wh4Tp/BVJsWv6jbJZgFVQvKyNNXMVgBVVFRtU3ZC JzDg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=YdOCMHbE; spf=pass (google.com: best guess record for domain of linux-pm-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-pm-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id f2si13506322pgl.74.2019.07.22.23.14.49; Mon, 22 Jul 2019 23:14:49 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-pm-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=YdOCMHbE; spf=pass (google.com: best guess record for domain of linux-pm-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-pm-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S2388168AbfGWGOr (ORCPT + 11 others); Tue, 23 Jul 2019 02:14:47 -0400 Received: from mail-pg1-f196.google.com ([209.85.215.196]:44884 "EHLO mail-pg1-f196.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S2388164AbfGWGOr (ORCPT ); Tue, 23 Jul 2019 02:14:47 -0400 Received: by mail-pg1-f196.google.com with SMTP id i18so18866368pgl.11 for ; Mon, 22 Jul 2019 23:14:46 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=from:to:cc:subject:date:message-id:in-reply-to:references :mime-version:content-transfer-encoding; bh=rUdeKFVKj/j46aY/YcoOji4W0Ij6fg/KFJvYkeK7wzw=; b=YdOCMHbEQbXw8KubWzfOBaz7EB1B9f22y/t/+FTFKWx6jaFEuKDB5E3Sdj+cgk/DqY C9cxtOOhSrNaS0qcgK+e3peT5VxHr1x8GRySc1B8JNaI4BFnBdNZKAcPcQwlFhAuZnHM fVZrfoQqSU7JY3To8jmisIml+v18EtMwAP2mG9m2TZV0803DLrB/agmYbIynLjJbpWGf CEx548oc6YgKawUdx4hUVc63pqEnTiPyaA84BAupYaEGnhrc2rFI0wqFtyI4YVcC2EqM TcblXyTlgI5zs0HecA/SZBqEEZyaW8DH0Iy3gUTOjqAgrxmynKEqKoeWUy9kWzXO4Cue ThYQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references:mime-version:content-transfer-encoding; bh=rUdeKFVKj/j46aY/YcoOji4W0Ij6fg/KFJvYkeK7wzw=; b=rUjT/cBXNyp27Rx6jgaqPmjaJ/yKJrAEGWr63xxYBtz3H8QwMob3bfp2WnXsAmVZjR Unpz84SCHScKxCQo/DRVbpTL7EoV7Ufxc5nTe3mH7pcPmk7sa63Z0x0g58SGW58WmVYL zY9tohzRKGxmiWdX5FY2FTOPmJMxOUFjw2/U8vWOoqPBHAFBHddl+OqyT4Ul1SMGu8eU +9Ak/B6xUC4HRmzSbyFA1SbqOJhCpJxRi8PqIncOoM2MZBBgAfiFAmUmAzYDlPvRIDSb AwxBqL3QYg6BwSdkzV7kbWFslWtnMyV1rSeXsCL74Bmtp4GDJl9XEZn1R0/e+DyVGx62 +qLA== X-Gm-Message-State: APjAAAXGPQJmP6NzKtBuPPL29xlUEU7kbTnhJKYY0YWghFSMxkPf3QUo eI2WiwdibhfOnsluCv8fKAzRDxo5PwE= X-Received: by 2002:a63:2148:: with SMTP id s8mr73371962pgm.336.1563862486415; Mon, 22 Jul 2019 23:14:46 -0700 (PDT) Received: from localhost ([122.172.28.117]) by smtp.gmail.com with ESMTPSA id j10sm3176159pfn.188.2019.07.22.23.14.45 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Mon, 22 Jul 2019 23:14:45 -0700 (PDT) From: Viresh Kumar To: Rafael Wysocki , Bartlomiej Zolnierkiewicz Cc: Viresh Kumar , linux-pm@vger.kernel.org, Vincent Guittot , dri-devel@lists.freedesktop.org, linux-fbdev@vger.kernel.org, linux-kernel@vger.kernel.org Subject: [PATCH V2 08/10] video: pxafb: Remove cpufreq policy notifier Date: Tue, 23 Jul 2019 11:44:08 +0530 Message-Id: <56ea0fb68b99d343b093bc517024356a18f780e7.1563862014.git.viresh.kumar@linaro.org> X-Mailer: git-send-email 2.21.0.rc0.269.g1a574e7a288b In-Reply-To: References: MIME-Version: 1.0 Sender: linux-pm-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-pm@vger.kernel.org The cpufreq policy notifier's CPUFREQ_ADJUST notification is going to get removed soon. The notifier callback pxafb_freq_policy() isn't doing anything apart from printing a debug message on CPUFREQ_ADJUST notification. There is no point in keeping an otherwise empty callback and registering the notifier. Remove it. Acked-by: Bartlomiej Zolnierkiewicz Signed-off-by: Viresh Kumar --- drivers/video/fbdev/pxafb.c | 21 --------------------- drivers/video/fbdev/pxafb.h | 1 - 2 files changed, 22 deletions(-) -- 2.21.0.rc0.269.g1a574e7a288b diff --git a/drivers/video/fbdev/pxafb.c b/drivers/video/fbdev/pxafb.c index 4282cb117b92..f70c9f79622e 100644 --- a/drivers/video/fbdev/pxafb.c +++ b/drivers/video/fbdev/pxafb.c @@ -1678,24 +1678,6 @@ pxafb_freq_transition(struct notifier_block *nb, unsigned long val, void *data) } return 0; } - -static int -pxafb_freq_policy(struct notifier_block *nb, unsigned long val, void *data) -{ - struct pxafb_info *fbi = TO_INF(nb, freq_policy); - struct fb_var_screeninfo *var = &fbi->fb.var; - struct cpufreq_policy *policy = data; - - switch (val) { - case CPUFREQ_ADJUST: - pr_debug("min dma period: %d ps, " - "new clock %d kHz\n", pxafb_display_dma_period(var), - policy->max); - /* TODO: fill in min/max values */ - break; - } - return 0; -} #endif #ifdef CONFIG_PM @@ -2400,11 +2382,8 @@ static int pxafb_probe(struct platform_device *dev) #ifdef CONFIG_CPU_FREQ fbi->freq_transition.notifier_call = pxafb_freq_transition; - fbi->freq_policy.notifier_call = pxafb_freq_policy; cpufreq_register_notifier(&fbi->freq_transition, CPUFREQ_TRANSITION_NOTIFIER); - cpufreq_register_notifier(&fbi->freq_policy, - CPUFREQ_POLICY_NOTIFIER); #endif /* diff --git a/drivers/video/fbdev/pxafb.h b/drivers/video/fbdev/pxafb.h index b641289c8a99..86b1e9ab1a38 100644 --- a/drivers/video/fbdev/pxafb.h +++ b/drivers/video/fbdev/pxafb.h @@ -162,7 +162,6 @@ struct pxafb_info { #ifdef CONFIG_CPU_FREQ struct notifier_block freq_transition; - struct notifier_block freq_policy; #endif struct regulator *lcd_supply;