From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1753220AbcGFGUi (ORCPT ); Wed, 6 Jul 2016 02:20:38 -0400 Received: from mx0a-0016f401.pphosted.com ([67.231.148.174]:47964 "EHLO mx0a-0016f401.pphosted.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751178AbcGFGUV (ORCPT ); Wed, 6 Jul 2016 02:20:21 -0400 From: Jisheng Zhang To: , , , CC: , , Jisheng Zhang Subject: [PATCH v4 0/2] make arm_cpuidle_suspend() a bit more efficient Date: Wed, 6 Jul 2016 14:15:53 +0800 Message-ID: <1467785755-3488-1-git-send-email-jszhang@marvell.com> X-Mailer: git-send-email 2.8.1 MIME-Version: 1.0 Content-Type: text/plain X-Proofpoint-Virus-Version: vendor=fsecure engine=2.50.10432:,, definitions=2016-07-06_03:,, signatures=0 X-Proofpoint-Details: rule=outbound_notspam policy=outbound score=0 spamscore=0 suspectscore=0 malwarescore=0 phishscore=0 adultscore=0 bulkscore=0 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.0.1-1604210000 definitions=main-1607060057 Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org There's one corner case need to be fixed: !cpuidle_ops[cpu].init. patch1 tries to address this corner case. patch2 tries to improve arm_cpuidle_suspend() a bit by moving .suspend check into arm_cpuidle_read_ops(). Since v3: - rebased on 4.7-rc1 Since v2: - add back patch1. Since v1: - drop patch1, I.E "ARM: cpuidle: fix !cpuidle_ops[cpu].init case during init", because there may be platforms which doesn't need the init member at all. - adopt Daniel's suggestion to move the cpuidle_ops.suspend check to arm_cpuidle_read_ops(). Jisheng Zhang (2): ARM: cpuidle: fix !cpuidle_ops[cpu].init case during init ARM: cpuidle: make arm_cpuidle_suspend() a bit more efficient arch/arm/kernel/cpuidle.c | 23 +++++++++++++---------- 1 file changed, 13 insertions(+), 10 deletions(-) -- 2.8.1