From owner-freebsd-arm@FreeBSD.ORG Mon Feb 7 18:44:00 2011 Return-Path: Delivered-To: arm@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 9F620106564A for ; Mon, 7 Feb 2011 18:44:00 +0000 (UTC) (envelope-from xcllnt@mac.com) Received: from asmtpout023.mac.com (asmtpout023.mac.com [17.148.16.98]) by mx1.freebsd.org (Postfix) with ESMTP id 8AA3F8FC12 for ; Mon, 7 Feb 2011 18:44:00 +0000 (UTC) MIME-version: 1.0 Content-transfer-encoding: 7BIT Content-type: text/plain; CHARSET=US-ASCII Received: from sa-nc-common2-131.static.jnpr.net (natint3.juniper.net [66.129.224.36]) by asmtp023.mac.com (Oracle Communications Messaging Exchange Server 7u4-20.01 64bit (built Nov 21 2010)) with ESMTPSA id <0LG900MYHG17CU60@asmtp023.mac.com> for arm@freebsd.org; Mon, 07 Feb 2011 10:43:56 -0800 (PST) X-Proofpoint-Virus-Version: vendor=fsecure engine=2.50.10432:5.2.15,1.0.148,0.0.0000 definitions=2011-02-07_06:2011-02-07, 2011-02-07, 1970-01-01 signatures=0 X-Proofpoint-Spam-Details: rule=notspam policy=default score=0 spamscore=0 ipscore=0 suspectscore=4 phishscore=0 bulkscore=0 adultscore=0 classifier=spam adjust=0 reason=mlx engine=6.0.2-1012030000 definitions=main-1102070089 From: Marcel Moolenaar Date: Mon, 07 Feb 2011 10:43:54 -0800 Message-id: <857AA8D9-5C41-4D80-A3B5-0D29BE051014@mac.com> To: arm@freebsd.org X-Mailer: Apple Mail (2.1082) Cc: Subject: Elimination of cpu_l2cache_* functions X-BeenThere: freebsd-arm@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Porting FreeBSD to the StrongARM Processor List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 07 Feb 2011 18:44:00 -0000 All, I've been reviewing the use of the cpu_l2cache_* functions and found that 1) they're missing from cpu_witch() and 2) they are always used in conjunction with either cpu_idcache_* or cpu_dcache_*. Since most CPU variants define them as null ops, isn't it better to incorporate the functionality of cpu_l2cache_* in cpu_idcache_* and cpu_dcache_* and eliminate them altogether? Any objections to me removing cpu_l2cache_* and therefore changing the semantics of cpu_idcache_* and cpu_dcahce_* to apply to all relevant cache levels? Thanks, -- Marcel Moolenaar xcllnt@mac.com