From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1753234AbdFVQf2 (ORCPT ); Thu, 22 Jun 2017 12:35:28 -0400 Received: from mail-wr0-f181.google.com ([209.85.128.181]:36336 "EHLO mail-wr0-f181.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752015AbdFVQf0 (ORCPT ); Thu, 22 Jun 2017 12:35:26 -0400 Date: Thu, 22 Jun 2017 18:35:21 +0200 From: Daniel Lezcano To: Thomas Gleixner Cc: linux-kernel@vger.kernel.org, Peter Zijlstra , "Rafael J . Wysocki" , Vincent Guittot , Nicolas Pitre , Jens Axboe , Hannes Reinecke , Bjorn Helgaas Subject: Re: [PATCH 3/3] irq: Compute the periodic interval for interrupts Message-ID: <20170622163521.GD2479@mai> References: <20170620212657.GB1812@mai> <1497994139-19816-1-git-send-email-daniel.lezcano@linaro.org> <1497994139-19816-3-git-send-email-daniel.lezcano@linaro.org> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.5.24 (2015-08-30) Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Thu, Jun 22, 2017 at 05:25:56PM +0200, Thomas Gleixner wrote: [ ... ] > > + ret = irq_timings_alloc(irq); > > + if (ret) { > > + pr_warn("Failed to allocate irq timing stats for irq%d (%d)", > > + irq, ret); > > That error code is -ENOMEM always, right? No, it could be also the value returned by idr_alloc() which could be EINVAL or ENOSPC (which are values returned also by the low level libraries radix-tree functions).