Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > linux.kernel > #1241698

Re: [PATCH] PM / OPP: fix debugfs files for 64-bit

From Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Newsgroups linux.kernel
Subject Re: [PATCH] PM / OPP: fix debugfs files for 64-bit
Date 2015-10-07 19:20 +0200
Message-ID <qh0xI-2Sd-7@gated-at.bofh.it> (permalink)
References (2 earlier) <qgULF-2Y1-27@gated-at.bofh.it> <qgULF-2Y1-33@gated-at.bofh.it> <qgV50-3kz-9@gated-at.bofh.it> <qgWu6-5fT-11@gated-at.bofh.it> <qgWDL-5In-11@gated-at.bofh.it>
Organization linux.* mail to news gateway

Show all headers | View raw


On Wed, Oct 07, 2015 at 06:33:24PM +0530, Viresh Kumar wrote:
> Cc'ing Mike and Stephen..
> 
> On 07-10-15, 13:57, Greg Kroah-Hartman wrote:
> > On Wed, Oct 07, 2015 at 04:51:49PM +0530, Viresh Kumar wrote:
> > > On 07-10-15, 12:07, Greg Kroah-Hartman wrote:
> > > > Why would you be wanting to create a "unsigned long" as an api anyway?
> > > > Just force it to be u64 all the time, can't you do that?
> > > 
> > > Okay, so the variable in question (lets say frequency) is an 'unsigned
> > > long' and that's how all the APIs of clock framework expect/define
> > > it.
> > > 
> > > And you are probably saying that we do this:
> > > 
> > > unsigned long freq;
> > > 
> > > debugfs_create_u64((u64 *)&freq);
> > > 
> > > Right? Or are you asking to update clock APIs to be converted to u64?
> > 
> > Yes, they should be u64 as I doubt you want to debug problems that you
> > have in the driver where it works on a 64bit system but doesn't on a
> > 32bit one.
> 
> Firstly changing the clock API (and other similar APIs) to make
> frequency u64 instead of 'unsigned long', looks like a giant effort.
> There are too many users of those API, etc..
> 
> Over that, it might be good performance wise to use u32 for 32 bit
> systems and u64 for 64 bit one, to represent clock frequency and maybe
> that's why we chose unsigned long there.

Ok, then stop exporting it in debugfs and everyone will be happy :)

greg k-h
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Please read the FAQ at  http://www.tux.org/lkml/

Back to linux.kernel | Previous | NextPrevious in thread | Next in thread | Find similar | Unroll thread


Thread

[PATCH] PM / OPP: fix debugfs files for 64-bit Arnd Bergmann <arnd@arndb.de> - 2015-10-07 09:40 +0200
  Re: [PATCH] PM / OPP: fix debugfs files for 64-bit Viresh Kumar <viresh.kumar@linaro.org> - 2015-10-07 13:00 +0200
    Re: [PATCH] PM / OPP: fix debugfs files for 64-bit Viresh Kumar <viresh.kumar@linaro.org> - 2015-10-07 13:10 +0200
      Re: [PATCH] PM / OPP: fix debugfs files for 64-bit Greg Kroah-Hartman <gregkh@linuxfoundation.org> - 2015-10-07 13:10 +0200
        Re: [PATCH] PM / OPP: fix debugfs files for 64-bit Viresh Kumar <viresh.kumar@linaro.org> - 2015-10-07 13:30 +0200
          Re: [PATCH] PM / OPP: fix debugfs files for 64-bit Greg Kroah-Hartman <gregkh@linuxfoundation.org> - 2015-10-07 15:00 +0200
            Re: [PATCH] PM / OPP: fix debugfs files for 64-bit Viresh Kumar <viresh.kumar@linaro.org> - 2015-10-07 15:10 +0200
              Re: [PATCH] PM / OPP: fix debugfs files for 64-bit Greg Kroah-Hartman <gregkh@linuxfoundation.org> - 2015-10-07 19:20 +0200
                Re: [PATCH] PM / OPP: fix debugfs files for 64-bit Viresh Kumar <viresh.kumar@linaro.org> - 2015-10-07 19:30 +0200
                Re: [PATCH] PM / OPP: fix debugfs files for 64-bit Greg Kroah-Hartman <gregkh@linuxfoundation.org> - 2015-10-07 19:50 +0200
                Re: [PATCH] PM / OPP: fix debugfs files for 64-bit Viresh Kumar <viresh.kumar@linaro.org> - 2015-10-07 20:10 +0200
              Re: [PATCH] PM / OPP: fix debugfs files for 64-bit Arnd Bergmann <arnd@arndb.de> - 2015-10-07 21:20 +0200
                Re: [PATCH] PM / OPP: fix debugfs files for 64-bit Viresh Kumar <viresh.kumar@linaro.org> - 2015-10-08 09:50 +0200
                Re: [PATCH] PM / OPP: fix debugfs files for 64-bit Alan Stern <stern@rowland.harvard.edu> - 2015-10-08 16:30 +0200
          Re: [PATCH] PM / OPP: fix debugfs files for 64-bit Viresh Kumar <viresh.kumar@linaro.org> - 2015-10-07 18:40 +0200
          Re: [PATCH] PM / OPP: fix debugfs files for 64-bit Russell King - ARM Linux <linux@arm.linux.org.uk> - 2015-10-07 18:40 +0200

csiph-web