lkml.org 
[lkml]   [2015]   [Mar]   [12]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
Date
From
SubjectRe: [PATCH] x86: improve algorithm in clflush_cache_range

* Ross Zwisler <ross.zwisler@linux.intel.com> wrote:

> The current algorithm used in clflush_cache_range() can cause the last
> cache line of the buffer to be flushed twice.
>
> Fix that algorithm so that each cache line will only be flushed once,
> and remove arithmetic on void pointers. Void pointer arithmetic is
> allowed by GCC extensions, but isn't part of the base C standards.

The optimization itself is fine, but that last argument is bogus: the
Linux kernel very much relies on 'void *' arithmetics in a gazillion
places.


Thanks,

Ingo


\
 
 \ /
  Last update: 2015-03-12 12:21    [W:0.088 / U:0.172 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site