From patchwork Tue Jul 23 06:14:07 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Viresh Kumar X-Patchwork-Id: 169482 Delivered-To: patch@linaro.org Received: by 2002:a92:4782:0:0:0:0:0 with SMTP id e2csp8446873ilk; Mon, 22 Jul 2019 23:14:49 -0700 (PDT) X-Google-Smtp-Source: APXvYqwmFiXBfS3KzO7FMUu6OTJ5ZBxjl2YVCcwvhwmgrs9MeNkCM/kazUvcYQe0bGOCmduMyFxq X-Received: by 2002:a65:6108:: with SMTP id z8mr43602077pgu.289.1563862489835; 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=jSqR/ACnxsQfWKnBM4/pENzgBcXXzWLJNW7/eNbEOufCYQ5FBfycFuIvvF9IPf+oYh f/vHWQ3QzYU+QK937pvo6y1Om1MShhvfWqTsprm+Tb+xidmxC3k2hkj1tK3naB8U3EAZ w8MUGV238UliVFUdcjSUbjHgOTAGDDMAvGlitTGE7TQrOYUj0d5mb6dDrGSfqD/vRZgQ ojodZzSlV9T9cyVyh42fbWk/WeNSIrcmmdFu0Pv0Yp3GukOLZkSeBRkBRonICc/UMQ8c 1TX4HWCO+WVL5zMYU0tY5IPEGw3zntfpfka3d7KPMvJ/Ur9OYfumoNHfIUsaLtQGlPcs Tb9A== 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=WSy97MHTyvjB+tNxNcL94WmxX39zNt2juy/xtyGFT8Y=; b=UnHZHMxoLw0hmtTCSYT2zOxLTn7pnPqRkqcaNBuQGw9ivsOJpX3GneniJYfC/Oyx81 CgpfiouxaJqHef516p2ykCMm0rixYBHnOYqAPWQPJtJuRxAxv+fExz3Jd1e9Or4SZV5i 0bvWzpjO21lWweEAkGY37pANjoPB2KJkuMmkxJG9Sxclef2Wd+TglyxaMADvTak0mj5q 5Heh3Gu8pycaeDEkXcgdzqgRNcggfD4vpqLEoIh9p2O2PWIJZP74VFSFwoLxW/RZNHop 5s2TPIxvyuxaKsTJPFqzRHKknhbG+sRmjBXVcDPL0iCEOow3b3OCN0Dl5WxL1AyWxd7x enBQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=qtTFfvyZ; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-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-kernel-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=qtTFfvyZ; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-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 S2388149AbfGWGOr (ORCPT + 29 others); Tue, 23 Jul 2019 02:14:47 -0400 Received: from mail-pl1-f194.google.com ([209.85.214.194]:42863 "EHLO mail-pl1-f194.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S2388145AbfGWGOo (ORCPT ); Tue, 23 Jul 2019 02:14:44 -0400 Received: by mail-pl1-f194.google.com with SMTP id ay6so20200113plb.9 for ; Mon, 22 Jul 2019 23:14:43 -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=WSy97MHTyvjB+tNxNcL94WmxX39zNt2juy/xtyGFT8Y=; b=qtTFfvyZQ+n3BuQV5HhEc01LRgT8Q3RVePNpiuu1aFBWLZo5PygfiqyPF5qZVn9kMs Ap/gS6I2/VtC79MvUUIFxAKz6PdL+jGvXs+qAQdfW+vWgCs0L5x6oMb817ZLrMRe+HJQ WQpmjP9g8/XywOFL87iUm1K0rWmzH6s0K/FknZkn08PcKHDV9j9derGTZZzn51hs2CvT bcbSjLS3S1IYcrl3kb/7UKnHwtQZcYDaFH2WL5o7WNBYy0kLw3qMjxeMVKpIO/5avxle slCcswwRW/HdUXQIyAaM/e+zokBpHfS8HYwRX12Njthf0f1F944t4XBK4n+1xmq6SCdT dckw== 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=WSy97MHTyvjB+tNxNcL94WmxX39zNt2juy/xtyGFT8Y=; b=AqJwibQJ7/MrHOXMF/pVmeWcfScItpsGjIoQy8NqZoE9kCpLi0rp30QOvXcXSFwZM9 s+CvDaxcKItRY+ZtF/YC4Dh71ArP39rzca6QirT1J3r3MFvaabRAqiiuJu0ZpJzpog+Z b1MKdL13sVVG6YCIiWv9Aj+MahzhQ/v3oZ11E9WCyYSKUKs0BadENmeG5jxUA0hdXPsh s81sd0JyNV7FrfqkzLcc+MV2opfbfS7qGZryz/liLQR1Pg6VgGVqOzUoOljrKk4aIhBc dSZalR8jgPCE+PQzxF454rfwNMsmp1kX2BmdS6MBC3O8JP3FcJVCA6D5P2xTSiAhfKja C5/w== X-Gm-Message-State: APjAAAVnDKKUdKKb8mzzNUCxA/vkjkkR2FzsLRyqOsEO6CyxT0UdLUHw Vz5fjA8m3pgFDGlT2aKyQsgpZQ== X-Received: by 2002:a17:902:a504:: with SMTP id s4mr56706631plq.117.1563862483299; Mon, 22 Jul 2019 23:14:43 -0700 (PDT) Received: from localhost ([122.172.28.117]) by smtp.gmail.com with ESMTPSA id o3sm76723419pje.1.2019.07.22.23.14.42 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Mon, 22 Jul 2019 23:14:42 -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 07/10] video: sa1100fb: Remove cpufreq policy notifier Date: Tue, 23 Jul 2019 11:44:07 +0530 Message-Id: X-Mailer: git-send-email 2.21.0.rc0.269.g1a574e7a288b In-Reply-To: References: MIME-Version: 1.0 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org The cpufreq policy notifier's CPUFREQ_ADJUST notification is going to get removed soon. The notifier callback sa1100fb_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/sa1100fb.c | 27 --------------------------- drivers/video/fbdev/sa1100fb.h | 1 - 2 files changed, 28 deletions(-) -- 2.21.0.rc0.269.g1a574e7a288b diff --git a/drivers/video/fbdev/sa1100fb.c b/drivers/video/fbdev/sa1100fb.c index f7f8dee044b1..ae2bcfee338a 100644 --- a/drivers/video/fbdev/sa1100fb.c +++ b/drivers/video/fbdev/sa1100fb.c @@ -1005,31 +1005,6 @@ sa1100fb_freq_transition(struct notifier_block *nb, unsigned long val, } return 0; } - -static int -sa1100fb_freq_policy(struct notifier_block *nb, unsigned long val, - void *data) -{ - struct sa1100fb_info *fbi = TO_INF(nb, freq_policy); - struct cpufreq_policy *policy = data; - - switch (val) { - case CPUFREQ_ADJUST: - dev_dbg(fbi->dev, "min dma period: %d ps, " - "new clock %d kHz\n", sa1100fb_min_dma_period(fbi), - policy->max); - /* todo: fill in min/max values */ - break; - case CPUFREQ_NOTIFY: - do {} while(0); - /* todo: panic if min/max values aren't fulfilled - * [can't really happen unless there's a bug in the - * CPU policy verififcation process * - */ - break; - } - return 0; -} #endif #ifdef CONFIG_PM @@ -1242,9 +1217,7 @@ static int sa1100fb_probe(struct platform_device *pdev) #ifdef CONFIG_CPU_FREQ fbi->freq_transition.notifier_call = sa1100fb_freq_transition; - fbi->freq_policy.notifier_call = sa1100fb_freq_policy; cpufreq_register_notifier(&fbi->freq_transition, CPUFREQ_TRANSITION_NOTIFIER); - cpufreq_register_notifier(&fbi->freq_policy, CPUFREQ_POLICY_NOTIFIER); #endif /* This driver cannot be unloaded at the moment */ diff --git a/drivers/video/fbdev/sa1100fb.h b/drivers/video/fbdev/sa1100fb.h index 7a1a9ca33cec..d0aa33b0b88a 100644 --- a/drivers/video/fbdev/sa1100fb.h +++ b/drivers/video/fbdev/sa1100fb.h @@ -64,7 +64,6 @@ struct sa1100fb_info { #ifdef CONFIG_CPU_FREQ struct notifier_block freq_transition; - struct notifier_block freq_policy; #endif const struct sa1100fb_mach_info *inf;